Fixed bug causing password change related hooks to not be called due to ajax

This commit is contained in:
Sam Tuke 2013-02-06 17:42:29 +00:00
parent 70d937cb29
commit 81de09711b
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
OCP\JSON::callCheck();
OC_JSON::checkLoggedIn();
OC_APP::loadApps();
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
$password = $_POST["password"];
$oldPassword=isset($_POST["oldpassword"])?$_POST["oldpassword"]:'';