summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorMichael Göhler <somebody.here@gmx.de>2012-10-11 11:54:40 +0200
committerMichael Göhler <somebody.here@gmx.de>2012-10-14 22:36:25 +0200
commit2ea06f67bd8bf8293afdff91fbbc42d021d2c211 (patch)
treeaeede9be57e4d95c5c7203ca37fa324050437e14 /lib/user.php
parent45f1c3f120e459a48ccb54b74cc97facb1946042 (diff)
downloadnextcloud-server-2ea06f67bd8bf8293afdff91fbbc42d021d2c211.tar.gz
nextcloud-server-2ea06f67bd8bf8293afdff91fbbc42d021d2c211.zip
delete all tokens on password change
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/user.php b/lib/user.php
index be8ddce88bb..11373a74014 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -329,6 +329,8 @@ class OC_User {
}
}
}
+ // invalidate all login cookies
+ OC_Preferences::deleteApp($uid, 'login_token');
OC_Hook::emit( "OC_User", "post_setPassword", array( "uid" => $uid, "password" => $password ));
return $success;
}