Skip to content

Commit

Permalink
TSS-128 Enhancement - Error message for blocked user (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardohildt authored Oct 2, 2023
1 parent c036048 commit 5d37813
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/global-translations/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4424,5 +4424,6 @@
"label.heading.unblockuser": "Confirm Unblock?",
"label.input.blockdays": "Block Days",
"validation.msg.user.blockDays.not.greater.than.zero": "Block days should be greater than zero.",
"error.msg.user.locked.out": "Your account has been blocked. Please contact admin for assistance.",
"----End---": "--End of file--- "
}
1 change: 1 addition & 0 deletions app/global-translations/locale-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4046,5 +4046,6 @@
"label.heading.unblockuser": "¿Confirmar el desbloqueo?",
"label.input.blockdays": "Días de bloqueo",
"validation.msg.user.blockDays.not.greater.than.zero": "El nro. de días de bloqueo debe ser mayor a cero.",
"error.msg.user.locked.out": "Su cuenta de usuario ha sido bloqueada. Por favor contacte al administrador.",
"----End---": "---Fin del archivo---"
}
5 changes: 4 additions & 1 deletion app/scripts/controllers/main/LoginFormController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
scope.$on("UserAuthenticationFailureEvent", function (event, data, status) {
delete scope.loginCredentials.password;
scope.authenticationFailed = true;
if(status != 401) {
if(status == 403) {
scope.authenticationErrorMessage = 'error.msg.user.locked.out';
scope.load = false;
} else if(status != 401) {
scope.authenticationErrorMessage = 'error.connection.failed';
scope.load = false;
} else {
Expand Down

0 comments on commit 5d37813

Please sign in to comment.