summaryrefslogtreecommitdiffstats
path: root/settings/ChangePassword/Controller.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-06-26 14:51:00 +0200
committerGitHub <noreply@github.com>2016-06-26 14:51:00 +0200
commitdb6361ef0314868edc9d58a81c0806c8c758af0a (patch)
treea2c168943d0e15a2d28febf82e31e74b15504117 /settings/ChangePassword/Controller.php
parent03449dcb9a56e642ff4eee31145498bbaeb83319 (diff)
parent7a9d60d87eb8e4414e5fe05830b088d426ff810d (diff)
downloadnextcloud-server-db6361ef0314868edc9d58a81c0806c8c758af0a.tar.gz
nextcloud-server-db6361ef0314868edc9d58a81c0806c8c758af0a.zip
Merge pull request #226 from nextcloud/master-upstream-sync
[Master] upstream sync
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();