Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Göhler <somebody.here@gmx.de>2012-10-11 14:53:34 +0400
committerMichael Göhler <somebody.here@gmx.de>2012-10-15 00:36:25 +0400
commit38b9bffaeaaa6154c903f87100f20e07afe8261d (patch)
tree0f79e0b159ce3d3ddcec47ec853159433ad1cb54 /lib
parenteb79ccafe3c0fcb20282d56e6ab04e0c051f929a (diff)
call unsetMagicInCookie if token is invalid
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 9cd2ee55b03..6105f525845 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -554,9 +554,9 @@ class OC{
}
// if you reach this point you have changed your password
// or you are an attacker
- // we can not delete tokens here because users will reach
+ // we can not delete tokens here because users may reach
// this point multible times after a password change
- //OC_Preferences::deleteApp($_POST['user'], 'login_token');
+ OC_User::unsetMagicInCookie();
}
OC_User::unsetMagicInCookie();
return true;