mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 12:27:56 +08:00
FIX: Suspended login error message not showing.
This commit is contained in:
parent
8c1d145f0e
commit
1c208ef3f0
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user