aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/LostController.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-24 12:17:53 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-24 12:17:53 +0200
commit188b87e03b9d6aaf4c9591c4a17f0f2685302999 (patch)
treeebf5ea5a0a712bcdb0327a125f80076a6e301f2c /core/Controller/LostController.php
parent989614f9d5faa11157b232785537eb5cca927649 (diff)
downloadnextcloud-server-188b87e03b9d6aaf4c9591c4a17f0f2685302999.tar.gz
nextcloud-server-188b87e03b9d6aaf4c9591c4a17f0f2685302999.zip
Cleanup legacy user class from unused methods
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Controller/LostController.php')
-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());
}