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:
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user