3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-30 04:14:17 +00:00

Re-add the image update

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-05-10 02:18:27 -07:00
parent ff66a938c1
commit 2dd32d8785

View File

@ -53,6 +53,10 @@ class GoogleAuthController extends Controller
if ($user) {
$user->update([
'avatar' => $socialUser->avatar,
]);
Auth::login($user, true);
return redirect()->route('home');
}
@ -60,7 +64,7 @@ class GoogleAuthController extends Controller
return redirect()->route('login')
->withErrors(
[
'email' => [
'username' => [
trans('admin/users/message.user_not_found'),
],
]