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(); app.loadConfig();
}, },
error: function(data, textStatus, jqXHR) { error: function(data, textStatus, jqXHR) {
// Update error text var message = data.responseJSON;
translator.translate(data.responseJSON, function(errorText) { if (typeof data.responseJSON !== 'string') {
message = data.responseJSON.message || '';
}
translator.translate(message, function(errorText) {
$('#login-error-notify').show().html(errorText); $('#login-error-notify').show().html(errorText);
}); });

Loading…
Cancel
Save