A free open source IT asset/license management system
Extra debugging
snipe7c77f4a697f8
diff --git a/app/Http/Controllers/GoogleAuthController.php b/app/Http/Controllers/GoogleAuthController.phpindex 84e428af3c..a93fcd1fc2 100644--- a/app/Http/Controllers/GoogleAuthController.php+++ b/app/Http/Controllers/GoogleAuthController.php@@ -34,9 +34,9 @@ class GoogleAuthController extends Controller{try {$socialUser = Socialite::driver('google')->user();- \Log::debug('Google user found');+ \Log::debug('Google user found in Google Workspace');} catch (InvalidStateException $exception) {- \Log::debug('Google user NOT found');+ \Log::debug('Google user NOT found in Google Workspace');return redirect()->route('login')->withErrors([@@ -52,7 +52,7 @@ class GoogleAuthController extends Controllerif ($user) {-+ \Log::debug('Google user '.$socialUser->getEmail().' found in Snipe-IT');$user->update(['avatar' => $socialUser->avatar,]);@@ -61,11 +61,12 @@ class GoogleAuthController extends Controllerreturn redirect()->route('home');}+ \Log::debug('Google user '.$socialUser->getEmail().' NOT found in Snipe-IT');return redirect()->route('login')->withErrors(['username' => [- trans('admin/users/message.user_not_found'),+ trans('auth/general.google_login_failed'),],]);diff --git a/resources/lang/en/admin/users/message.php b/resources/lang/en/admin/users/message.phpindex 247a1b321e..adf26b3229 100644--- a/resources/lang/en/admin/users/message.php+++ b/resources/lang/en/admin/users/message.php@@ -6,7 +6,7 @@ return array('declined' => 'You have successfully declined this asset.','bulk_manager_warn' => 'Your users have been successfully updated, however your manager entry was not saved because the manager you selected was also in the user list to be edited, and users may not be their own manager. Please select your users again, excluding the manager.','user_exists' => 'User already exists!',- 'user_not_found' => 'User [:id] does not exist.',+ 'user_not_found' => 'User does not exist.','user_login_required' => 'The login field is required','user_password_required' => 'The password is required.','insufficient_permissions' => 'Insufficient Permissions.',