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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ChangePassword/Controller.php b/settings/ChangePassword/Controller.php
index 2bf743575b0..1f3ea1b446a 100644
--- a/settings/ChangePassword/Controller.php
+++ b/settings/ChangePassword/Controller.php
@@ -46,7 +46,7 @@ class Controller {
exit();
}
if (!is_null($password) && \OC_User::setPassword($username, $password)) {
- \OC::$server->getUserSession()->updateSessionTokenPassword($username, $password);
+ \OC::$server->getUserSession()->updateSessionTokenPassword($password);
\OC_JSON::success();
} else {
\OC_JSON::error();