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