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
|
@ -88,8 +88,8 @@ class OC_User_Dummy extends OC_User_Backend {
|
||||||
* returns the user id or false
|
* returns the user id or false
|
||||||
*/
|
*/
|
||||||
public function checkPassword($uid, $password) {
|
public function checkPassword($uid, $password) {
|
||||||
if (isset($this->users[$uid])) {
|
if (isset($this->users[$uid]) && $this->users[$uid] == $password) {
|
||||||
return ($this->users[$uid] == $password);
|
return $uid;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue