Skip to content

A free open source IT asset/license management system

Added debugging

snipe567a800c5148
diff --git a/app/Http/Controllers/GoogleAuthController.php b/app/Http/Controllers/GoogleAuthController.php
index 29dfc9c1a0..608ee8459c 100644
--- a/app/Http/Controllers/GoogleAuthController.php
+++ b/app/Http/Controllers/GoogleAuthController.php
@@ -33,12 +33,13 @@ class GoogleAuthController extends Controller
{
try {
$socialUser = Socialite::driver('google')->user();
+ \Log::debug('Social user found');
} catch (InvalidStateException $exception) {
-
+ \Log::debug('Social user found');
return redirect()->route('login')
->withErrors(
[
- 'email' => [
+ 'username' => [
__('Google Login failed, please try again.'),
],
]