From 0637d803cbf6354b2cebe95ef89208adfb555117 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Thu, 14 Jun 2018 17:20:47 +0800 Subject: [PATCH] fix(core): fixed login issue --- .../client/controllers/authentication.client.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/users/client/controllers/authentication.client.controller.js b/modules/users/client/controllers/authentication.client.controller.js index 2263d91f..fed33882 100644 --- a/modules/users/client/controllers/authentication.client.controller.js +++ b/modules/users/client/controllers/authentication.client.controller.js @@ -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) + }); } }