diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-21 11:54:54 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-21 11:54:54 +0200 |
commit | db11c20dcb3c8848305b22dac68410864203f1e2 (patch) | |
tree | aa9544073298e7a122355c25231b9c9f71b30d35 /settings | |
parent | b805908dca5cd4daf9f56bc140bbed48e067d573 (diff) | |
download | nextcloud-server-db11c20dcb3c8848305b22dac68410864203f1e2.tar.gz nextcloud-server-db11c20dcb3c8848305b22dac68410864203f1e2.zip |
pass new password instead of username
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ChangePassword/Controller.php | 2 |
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(); |