diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 95070573f..b0e997c23 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -708,5 +708,7 @@ "Your email address was automatically set based on your {provider} account.": "Your email address was automatically set based on your {provider} account.", "You can't change your password because you are registered through {provider}.": "You can't change your password because you are registered through {provider}.", "Error while login with {provider}. Retry or login another way.": "Error while login with {provider}. Retry or login another way.", - "Error while login with {provider}. This login provider doesn't exist.": "Error while login with {provider}. This login provider doesn't exist." + "Error while login with {provider}. This login provider doesn't exist.": "Error while login with {provider}. This login provider doesn't exist.", + "This user has been disabled": "This user has been disabled", + "You can't reset your password because you use a 3rd-party auth provider to login.": "You can't reset your password because you use a 3rd-party auth provider to login." } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index b0ad62388..031014ba3 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -708,5 +708,7 @@ "Your email address was automatically set based on your {provider} account.": "Votre adresse email a été définie automatiquement en se basant sur votre compte {provider}.", "You can't change your password because you are registered through {provider}.": "Vous ne pouvez pas changer votre mot de passe car vous vous êtes enregistré via {provider}.", "Error while login with {provider}. Retry or login another way.": "Erreur lors de la connexion avec {provider}. Réessayez ou bien connectez vous autrement.", - "Error while login with {provider}. This login provider doesn't exist.": "Erreur lors de la connexion avec {provider}. Cette méthode de connexion n'existe pas." + "Error while login with {provider}. This login provider doesn't exist.": "Erreur lors de la connexion avec {provider}. Cette méthode de connexion n'existe pas.", + "This user has been disabled": "Cet utilisateur·ice a été désactivé·e", + "You can't reset your password because you use a 3rd-party auth provider to login.": "Vous ne pouvez pas réinitialiser votre mot de passe car vous vous connectez via une méthode externe." } diff --git a/js/src/types/login-error-code.model.ts b/js/src/types/login-error-code.model.ts index e2752030b..4c812ec18 100644 --- a/js/src/types/login-error-code.model.ts +++ b/js/src/types/login-error-code.model.ts @@ -8,4 +8,9 @@ export enum LoginError { USER_EMAIL_PASSWORD_INVALID = "Impossible to authenticate, either your email or password are invalid.", LOGIN_PROVIDER_ERROR = "Error with Login Provider", LOGIN_PROVIDER_NOT_FOUND = "Login Provider not found", + USER_DISABLED = "This user has been disabled", +} + +export enum ResetError { + USER_IMPOSSIBLE_TO_RESET = "This user can't reset their password", } diff --git a/js/src/views/User/Login.vue b/js/src/views/User/Login.vue index 9862045c6..cce0febdc 100644 --- a/js/src/views/User/Login.vue +++ b/js/src/views/User/Login.vue @@ -54,6 +54,9 @@ {{ $t("No user account with this email was found. Maybe you made a typo?") }} + + {{ $t("This user has been disabled") }} +