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:
Thomas Citharel
2019-10-15 18:13:05 +02:00
parent ff064188e1
commit de9b26df2d
11 changed files with 78 additions and 17 deletions

View File

@@ -49,17 +49,13 @@ export const errors: IError[] = [
suggestRefresh: false,
},
{
match: /^User with email not found$/,
match: /^No user with this email was found$/,
value: null,
},
{
match: /^Username is already taken$/,
value: null,
},
{
match: /^No user with this email was found$/,
value: null,
},
{
match: /^Impossible to authenticate, either your email or password are invalid.$/,
value: null,
@@ -72,4 +68,8 @@ export const errors: IError[] = [
match: /^This email is already used.$/,
value: null,
},
{
match: /^User account not confirmed$/,
value: null,
},
];