IO-1442 Update login error codes.

This commit is contained in:
Patrick Fic
2022-04-11 13:28:51 -07:00
parent 51d49be16e
commit 6b13dffe68
5 changed files with 85 additions and 1 deletions

View File

@@ -43231,6 +43231,63 @@
</folder_node>
</children>
</folder_node>
<folder_node>
<name>users</name>
<children>
<folder_node>
<name>errors</name>
<children>
<folder_node>
<name>signinerror</name>
<children>
<concept_node>
<name>auth/user-not-found</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>auth/wrong-password</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
</children>
</folder_node>
</children>
</folder_node>
</children>
</folder_node>
<folder_node>
<name>vehicles</name>
<children>

View File

@@ -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"

View File

@@ -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.",

View File

@@ -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.",

View File

@@ -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.",