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…
Reference in New Issue