Return false if the login is canceled in a hook
This commit is contained in:
parent
6d73aff9ad
commit
857695ec87
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue