summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-27 17:40:41 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-27 17:40:41 -0400
commit98ca6c4a169334a998e3a5131a7aae12df4544d2 (patch)
tree79e34d2407be4a3b1f2edb0f2bda5c48863b5efe /settings/ajax
parenteee7d8da50045e6b659466f8567a4672b37184f4 (diff)
downloadnextcloud-server-98ca6c4a169334a998e3a5131a7aae12df4544d2.tar.gz
nextcloud-server-98ca6c4a169334a998e3a5131a7aae12df4544d2.zip
Fix changing password in personal page (not complete)
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/changepassword.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php
index 98c2a8b37a1..e7e67115dda 100644
--- a/settings/ajax/changepassword.php
+++ b/settings/ajax/changepassword.php
@@ -12,7 +12,7 @@ if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' ))
exit();
}
-$username = $_POST["username"];
+$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
$password = $_POST["password"];
// Return Success story