diff options
Diffstat (limited to 'core/Controller/LostController.php')
-rw-r--r-- | core/Controller/LostController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index 0d5988a2495..59a4e0b2534 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -267,7 +267,7 @@ class LostController extends Controller { \OC_Hook::emit('\OC\Core\LostPassword\Controller\LostController', 'post_passwordReset', array('uid' => $userId, 'password' => $password)); $this->config->deleteUserValue($userId, 'core', 'lostpassword'); - @\OC_User::unsetMagicInCookie(); + @\OC::$server->getUserSession()->unsetMagicInCookie(); } catch (\Exception $e){ return $this->error($e->getMessage()); } |