summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/AuthUser.php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-06-11 00:13:48 -0700
committerGravatar Tom Willemse2024-06-11 00:13:48 -0700
commita959a69a1dd781caa33829db161859c88455911d (patch)
treeac0db2fa23482c6ef5caedd21079bf2f8c9be368 /src/SemanticScuttle/Service/AuthUser.php
parent9bcc5827388491d37591a86a175f63fa9cd38d41 (diff)
parent85cca718e308779a56dbf302140ce9088fc0727a (diff)
downloadscuttle-a959a69a1dd781caa33829db161859c88455911d.tar.gz
scuttle-a959a69a1dd781caa33829db161859c88455911d.zip
Merge branch 'sqlite-fixes' into oni
Diffstat (limited to 'src/SemanticScuttle/Service/AuthUser.php')
-rw-r--r--src/SemanticScuttle/Service/AuthUser.php12
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
+?>