IO-1442 Update login error codes.
This commit is contained in:
@@ -81,7 +81,10 @@ export function SignInComponent({
|
||||
/>
|
||||
</Form.Item>
|
||||
{signInError ? (
|
||||
<AlertComponent type="error" message={signInError.message} />
|
||||
<AlertComponent
|
||||
type="error"
|
||||
message={t(`users.errors.signinerror.${signInError.code}`)}
|
||||
/>
|
||||
) : null}
|
||||
<Button
|
||||
className="login-btn"
|
||||
|
||||
@@ -2574,6 +2574,14 @@
|
||||
"passwordchanged": "Password changed successfully. "
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"errors": {
|
||||
"signinerror": {
|
||||
"auth/user-not-found": "A user with this email does not exist.",
|
||||
"auth/wrong-password": "The email and password combination you provided is incorrect."
|
||||
}
|
||||
}
|
||||
},
|
||||
"vehicles": {
|
||||
"errors": {
|
||||
"noaccess": "The vehicle does not exist or you do not have access to it.",
|
||||
|
||||
@@ -2574,6 +2574,14 @@
|
||||
"passwordchanged": ""
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"errors": {
|
||||
"signinerror": {
|
||||
"auth/user-not-found": "",
|
||||
"auth/wrong-password": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"vehicles": {
|
||||
"errors": {
|
||||
"noaccess": "El vehículo no existe o usted no tiene acceso a él.",
|
||||
|
||||
@@ -2574,6 +2574,14 @@
|
||||
"passwordchanged": ""
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"errors": {
|
||||
"signinerror": {
|
||||
"auth/user-not-found": "",
|
||||
"auth/wrong-password": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"vehicles": {
|
||||
"errors": {
|
||||
"noaccess": "Le véhicule n'existe pas ou vous n'y avez pas accès.",
|
||||
|
||||
Reference in New Issue
Block a user