Translate them and handle difference between user not found and user not
confirmed Closes #212 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
export enum LoginErrorCode {
|
||||
NEED_TO_LOGIN = 'rouge',
|
||||
}
|
||||
|
||||
export enum LoginError {
|
||||
USER_NOT_CONFIRMED = 'User account not confirmed',
|
||||
USER_DOES_NOT_EXIST = 'No user with this email was found',
|
||||
USER_EMAIL_PASSWORD_INVALID = 'Impossible to authenticate, either your email or password are invalid.',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user