summaryrefslogtreecommitdiffstats
path: root/settings/ChangePassword/Controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/ChangePassword/Controller.php')
-rw-r--r--settings/ChangePassword/Controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/ChangePassword/Controller.php b/settings/ChangePassword/Controller.php
index 5a6c985f181..1f3ea1b446a 100644
--- a/settings/ChangePassword/Controller.php
+++ b/settings/ChangePassword/Controller.php
@@ -46,6 +46,7 @@ class Controller {
exit();
}
if (!is_null($password) && \OC_User::setPassword($username, $password)) {
+ \OC::$server->getUserSession()->updateSessionTokenPassword($password);
\OC_JSON::success();
} else {
\OC_JSON::error();