Node.js based forum software built for the modern web
show error message if password empty
barisusakli04309ac09ccc
diff --git a/public/src/forum/login.js b/public/src/forum/login.jsindex 632844560d..bc2362aa29 100644--- a/public/src/forum/login.js+++ b/public/src/forum/login.js@@ -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);});