diff options
author | Tom Willemse | 2024-06-10 21:09:15 -0700 |
---|---|---|
committer | Tom Willemse | 2024-06-10 21:09:15 -0700 |
commit | b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1 (patch) | |
tree | 6397c4fbcd147c7715f231f336107f8e13802cec /src/SemanticScuttle/Service/AuthUser.php | |
parent | 53b174a3236d89e1528ea663584f6bbca3c24c53 (diff) | |
download | scuttle-b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1.tar.gz scuttle-b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1.zip |
Make sure to check users for being false
Diffstat (limited to 'src/SemanticScuttle/Service/AuthUser.php')
-rw-r--r-- | src/SemanticScuttle/Service/AuthUser.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/SemanticScuttle/Service/AuthUser.php b/src/SemanticScuttle/Service/AuthUser.php index 9447ee4..f0bc908 100644 --- a/src/SemanticScuttle/Service/AuthUser.php +++ b/src/SemanticScuttle/Service/AuthUser.php @@ -168,10 +168,12 @@ class SemanticScuttle_Service_AuthUser extends SemanticScuttle_Service_User //user must have changed password in external auth. //we need to update the local database. $user = $this->getUserByUsername($username); - $this->_updateuser( - $user['uId'], $this->getFieldName('password'), - $this->sanitisePassword($password) - ); + if ($user) { + $this->_updateuser( + $user['uId'], $this->getFieldName('password'), + $this->sanitisePassword($password) + ); + } return parent::login($username, $password, $remember); } @@ -229,4 +231,4 @@ class SemanticScuttle_Service_AuthUser extends SemanticScuttle_Service_User } } -?>
\ No newline at end of file +?> |