From: Florin Peter Date: Fri, 31 May 2013 19:30:13 +0000 (+0200) Subject: user should set into session before postLogin hook otherwise it will break not only... X-Git-Tag: v6.0.0alpha2~688^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b840de4e0125cec430dd1d9b49371fe5d4f6c1e7;p=nextcloud-server.git user should set into session before postLogin hook otherwise it will break not only the files_encryption app --- diff --git a/lib/user/session.php b/lib/user/session.php index fcbebee8f88..f4a9c8382a1 100644 --- a/lib/user/session.php +++ b/lib/user/session.php @@ -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;