From 0d985d3e3d611794c5fbf9628842bfea4881b32f Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Tue, 9 Mar 2021 09:47:12 -0800 Subject: [PATCH] minimal auth updates (#4278) --- src/Common/Auth/AuthUtils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/Auth/AuthUtils.php b/src/Common/Auth/AuthUtils.php index c15f05bc2..a41afda52 100644 --- a/src/Common/Auth/AuthUtils.php +++ b/src/Common/Auth/AuthUtils.php @@ -300,7 +300,7 @@ class AuthUtils // Check to ensure user is in a group (and collect the group name) $authGroup = UserService::getAuthGroupForUser($username); - if ($authGroup === false) { + if (empty($authGroup)) { EventAuditLogger::instance()->newEvent($event, $username, '', 0, $beginLog . ": " . $ip['ip_string'] . ". user not found in a group"); $this->clearFromMemory($password); $this->preventTimingAttack(); @@ -967,11 +967,11 @@ class AuthUtils } /** - * Validates a google ID token and returns a user on success. If validation + * Validates a google ID token and returns true on success. If validation * fails, return false. * * @param $token - * @return array|bool + * @return bool */ public static function verifyGoogleSignIn($token) { -- 2.11.4.GIT