FIX: Suspended login error message not showing.

This commit is contained in:
Guo Xiang Tan 2018-03-13 11:27:55 +08:00
parent 8c1d145f0e
commit 1c208ef3f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}); });