Skip to content
Snippets Groups Projects
Commit 6eab36a8 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Make OC_User_Dummy::checkPassword() compatible with OC_User_Example.

The user id has to be returned.
parent 1f11dc72
Branches
No related tags found
No related merge requests found
...@@ -88,8 +88,8 @@ class OC_User_Dummy extends OC_User_Backend { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment