Make OC_User_Dummy::checkPassword() compatible with OC_User_Example.
The user id has to be returned.
This commit is contained in:
parent
1f11dc7200
commit
6eab36a89b
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ class OC_User_Dummy extends OC_User_Backend {
|
|||
* returns the user id or false
|
||||
*/
|
||||
public function checkPassword($uid, $password) {
|
||||
if (isset($this->users[$uid])) {
|
||||
return ($this->users[$uid] == $password);
|
||||
if (isset($this->users[$uid]) && $this->users[$uid] == $password) {
|
||||
return $uid;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue