summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-24 14:39:18 +0200
committerGitHub <noreply@github.com>2017-07-24 14:39:18 +0200
commitc43d479372c408543f7583aa7682c14dec0857f9 (patch)
treed271a1e8930a087a7a54bb179ea7c28b6e0b2a95 /core
parent184f25c0d6202ccbca1c828e1f0cb287a864a790 (diff)
parent188b87e03b9d6aaf4c9591c4a17f0f2685302999 (diff)
downloadnextcloud-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.php2
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());
}