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
1 changed files with 2 additions and 2 deletions

View File

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