fix inconsistent post parameters in change password operation
This commit is contained in:
parent
d3ba20fee7
commit
135991474b
|
@ -8,7 +8,7 @@ OC_JSON::checkLoggedIn();
|
|||
OC_APP::loadApps();
|
||||
|
||||
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
|
||||
$password = isset($_POST["password"]) ? $_POST["password"] : null;
|
||||
$password = isset($_POST["newpassword"]) ? $_POST["newpassword"] : null;
|
||||
$oldPassword=isset($_POST["oldpassword"])?$_POST["oldpassword"]:'';
|
||||
|
||||
$userstatus = null;
|
||||
|
|
|
@ -38,7 +38,7 @@ if($_['passwordChangeSupported']) {
|
|||
<div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div>
|
||||
<div id="passworderror"><?php echo $l->t('Unable to change your password');?></div>
|
||||
<input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t('Current password');?>" />
|
||||
<input type="password" id="pass2" name="new-password"
|
||||
<input type="password" id="pass2" name="newpassword"
|
||||
placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#personal-show" />
|
||||
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
|
||||
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
|
||||
|
|
Loading…
Reference in New Issue