Skip to content

A platform for community discussion. Free, open, simple.

FIX: Suspended login error message not showing.

Guo Xiang Tan1c208ef3f0bd
diff --git a/app/assets/javascripts/discourse/controllers/login.js.es6 b/app/assets/javascripts/discourse/controllers/login.js.es6
index 76868ed9832..e051bd190aa 100644
--- a/app/assets/javascripts/discourse/controllers/login.js.es6
+++ b/app/assets/javascripts/discourse/controllers/login.js.es6
@@ -14,7 +14,7 @@ const AuthErrors = [
'awaiting_approval',
'awaiting_activation',
'admin_not_allowed_from_ip_address',
- 'not_allowed_from_ip_address'
+ 'not_allowed_from_ip_address',
];
export default Ember.Controller.extend(ModalFunctionality, {
@@ -263,7 +263,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
showModal('login');
Ember.run.next(() => {
- callback();
+ if (callback) callback();
self.flash(errorMsg, className || 'success');
self.set('authenticate', null);
});