Merge pull request #17818 from owncloud/fix-password-change-error-always-shows-default-error
assign password change error message to correct object
This commit is contained in:
commit
0e6c4e1902
|
@ -194,9 +194,9 @@ $(document).ready(function () {
|
|||
$('#password-error').removeClass('inlineblock').addClass('hidden');
|
||||
} else {
|
||||
if (typeof(data.data) !== "undefined") {
|
||||
$('#passworderror').html(data.data.message);
|
||||
$('#password-error').html(data.data.message);
|
||||
} else {
|
||||
$('#passworderror').html(t('Unable to change password'));
|
||||
$('#password-error').html(t('Unable to change password'));
|
||||
}
|
||||
// Hide a possible successmsg and show errormsg
|
||||
$('#password-changed').removeClass('inlineblock').addClass('hidden');
|
||||
|
|
Loading…
Reference in New Issue