mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 13:40:52 +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_approval',
|
||||||
'awaiting_activation',
|
'awaiting_activation',
|
||||||
'admin_not_allowed_from_ip_address',
|
'admin_not_allowed_from_ip_address',
|
||||||
'not_allowed_from_ip_address'
|
'not_allowed_from_ip_address',
|
||||||
];
|
];
|
||||||
|
|
||||||
export default Ember.Controller.extend(ModalFunctionality, {
|
export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
@ -263,7 +263,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
showModal('login');
|
showModal('login');
|
||||||
|
|
||||||
Ember.run.next(() => {
|
Ember.run.next(() => {
|
||||||
callback();
|
if (callback) callback();
|
||||||
self.flash(errorMsg, className || 'success');
|
self.flash(errorMsg, className || 'success');
|
||||||
self.set('authenticate', null);
|
self.set('authenticate', null);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user