Return false if the login is canceled in a hook

This commit is contained in:
Robin Appelman 2015-01-13 13:24:41 +01:00
parent 6d73aff9ad
commit 857695ec87
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class Session implements IUserSession, Emitter {
$this->setUser($user);
$this->setLoginName($uid);
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
return true;
return $this->isLoggedIn();
} else {
return false;
}