summaryrefslogtreecommitdiffstats
path: root/settings/ChangePassword
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-06-21 10:23:50 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-06-21 10:24:25 +0200
commitb805908dca5cd4daf9f56bc140bbed48e067d573 (patch)
tree9c9bee8639d269b80985621c873163b5803a6a8b /settings/ChangePassword
parent0e575c7eeadc6c8eb11b0be2ed1d39cdcf6cfcb8 (diff)
downloadnextcloud-server-b805908dca5cd4daf9f56bc140bbed48e067d573.tar.gz
nextcloud-server-b805908dca5cd4daf9f56bc140bbed48e067d573.zip
update session token password on user password change
Diffstat (limited to 'settings/ChangePassword')
-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..2bf743575b0 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($username, $password);
\OC_JSON::success();
} else {
\OC_JSON::error();