fix(core): fixed login issue

This commit is contained in:
OldHawk
2018-06-14 17:20:47 +08:00
parent e11fbbd728
commit 0637d803cb

View File

@@ -193,7 +193,9 @@
}
function onUserSigninError(response) {
NotifycationService.showErrorNotify(response.data.message, 'SIGN.SIGNIN_ERROR', {reason: $translate.instant(response.data.banReason.reason, response.data.banReason.params)});
NotifycationService.showErrorNotify(response.data.message, 'SIGN.SIGNIN_ERROR', {
reason: $translate.instant(response.data.banReason ? response.data.banReason.reason : undefined, response.data.banReason ? response.data.banReason.params : undefined)
});
}
}