show error message if password empty

v1.18.x
barisusakli 11 years ago
parent 18810e7203
commit 04309ac09c

@ -45,8 +45,11 @@ define(function() {
app.loadConfig();
},
error: function(data, textStatus, jqXHR) {
// Update error text
translator.translate(data.responseJSON, function(errorText) {
var message = data.responseJSON;
if (typeof data.responseJSON !== 'string') {
message = data.responseJSON.message || '';
}
translator.translate(message, function(errorText) {
$('#login-error-notify').show().html(errorText);
});

Loading…
Cancel
Save