mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Re-add the image update
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ff66a938c1
commit
2dd32d8785
|
@ -53,6 +53,10 @@ class GoogleAuthController extends Controller
|
||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
|
|
||||||
|
$user->update([
|
||||||
|
'avatar' => $socialUser->avatar,
|
||||||
|
]);
|
||||||
|
|
||||||
Auth::login($user, true);
|
Auth::login($user, true);
|
||||||
return redirect()->route('home');
|
return redirect()->route('home');
|
||||||
}
|
}
|
||||||
|
@ -60,7 +64,7 @@ class GoogleAuthController extends Controller
|
||||||
return redirect()->route('login')
|
return redirect()->route('login')
|
||||||
->withErrors(
|
->withErrors(
|
||||||
[
|
[
|
||||||
'email' => [
|
'username' => [
|
||||||
trans('admin/users/message.user_not_found'),
|
trans('admin/users/message.user_not_found'),
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue