show error message if password empty

This commit is contained in:
barisusakli
2014-05-25 13:04:58 -04:00
parent 18810e7203
commit 04309ac09c

View File

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