Make OC_User_Dummy::checkPassword() compatible with OC_User_Example.

The user id has to be returned.
This commit is contained in:
Andreas Fischer 2013-10-08 19:48:49 +02:00
parent 1f11dc7200
commit 6eab36a89b

View file

@ -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;
}