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
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-06-21 11:23:50 +0300
committerChristoph Wurst <christoph@owncloud.com>2016-06-21 11:24:25 +0300
commitb805908dca5cd4daf9f56bc140bbed48e067d573 (patch)
tree9c9bee8639d269b80985621c873163b5803a6a8b /settings
parent0e575c7eeadc6c8eb11b0be2ed1d39cdcf6cfcb8 (diff)
update session token password on user password change
Diffstat (limited to 'settings')
-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();