mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
user profile updates
This commit is contained in:
parent
c7c621b086
commit
ea140671bc
9 changed files with 78 additions and 27 deletions
|
|
@ -19,11 +19,15 @@ class AuthController extends Controller
|
|||
|
||||
$authUser = User::updateOrCreate(
|
||||
[ 'email' => $user->getEmail() ],
|
||||
[ 'name' => $user->getName() ]
|
||||
);
|
||||
|
||||
if ($authUser)
|
||||
{
|
||||
if ($authUser->name == '')
|
||||
{
|
||||
$authUser->name = $user->getName();
|
||||
$authUser->save();
|
||||
}
|
||||
Auth::login($authUser);
|
||||
return redirect('/');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue