mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-08 07:40:05 +01:00
show error message if password empty
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user