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:
Roeland Douma 2015-07-23 16:15:19 +02:00
commit 0e6c4e1902
1 changed files with 2 additions and 2 deletions

View File

@ -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');