diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-24 14:39:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 14:39:18 +0200 |
commit | c43d479372c408543f7583aa7682c14dec0857f9 (patch) | |
tree | d271a1e8930a087a7a54bb179ea7c28b6e0b2a95 /core | |
parent | 184f25c0d6202ccbca1c828e1f0cb287a864a790 (diff) | |
parent | 188b87e03b9d6aaf4c9591c4a17f0f2685302999 (diff) | |
download | nextcloud-server-c43d479372c408543f7583aa7682c14dec0857f9.tar.gz nextcloud-server-c43d479372c408543f7583aa7682c14dec0857f9.zip |
Merge pull request #5855 from nextcloud/cleanup-legacy-user-class
Cleanup legacy user class from unused methods
Diffstat (limited to 'core')
-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()); } |