user should set into session before postLogin hook otherwise it will break not only the files_encryption app
This commit is contained in:
parent
d85a10ebc5
commit
b840de4e01
1 changed files with 1 additions and 1 deletions
|
@ -116,8 +116,8 @@ class Session implements Emitter {
|
|||
if ($user) {
|
||||
$result = $user->checkPassword($password);
|
||||
if ($result and $user->isEnabled()) {
|
||||
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
|
||||
$this->setUser($user);
|
||||
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue