diff options
Diffstat (limited to 'app/Auth/Google.php')
-rw-r--r-- | app/Auth/Google.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Auth/Google.php b/app/Auth/Google.php index e7abae08..9a977037 100644 --- a/app/Auth/Google.php +++ b/app/Auth/Google.php @@ -35,7 +35,7 @@ class Google extends Base { $user = $this->user->getByGoogleId($google_id); - if ($user) { + if (! empty($user)) { $this->userSession->refresh($user); $this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id'])); return true; |