diff --git a/assets/locales/af/auth.json b/assets/locales/af/auth.json
index e19547a0..46a256ca 100644
--- a/assets/locales/af/auth.json
+++ b/assets/locales/af/auth.json
@@ -1,7 +1,6 @@
{
"login": {
- "INVALID_LOGIN": "E-Mail or Phone not found",
- "INVALID_PASSWORD": "Invalid Password",
+ "INVALID_LOGIN": "Login or password is invalid.",
"ACCOUNT_DISABLED": "This account is disabled"
},
"register": {
@@ -13,4 +12,4 @@
"CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.",
"USERNAME_TOO_MANY_USERS": "Too many users have this username, please try another"
}
-}
+}
\ No newline at end of file
diff --git a/src/api/routes/auth/login.ts b/src/api/routes/auth/login.ts
index cc5a2063..a2100333 100644
--- a/src/api/routes/auth/login.ts
+++ b/src/api/routes/auth/login.ts
@@ -93,6 +93,10 @@ router.post(
message: req.t("auth:login.INVALID_LOGIN"),
code: "INVALID_LOGIN",
},
+ password: {
+ message: req.t("auth:login.INVALID_LOGIN"),
+ code: "INVALID_LOGIN",
+ },
});
});
@@ -103,9 +107,13 @@ router.post(
);
if (!same_password) {
throw FieldErrors({
+ login: {
+ message: req.t("auth:login.INVALID_LOGIN"),
+ code: "INVALID_LOGIN",
+ },
password: {
- message: req.t("auth:login.INVALID_PASSWORD"),
- code: "INVALID_PASSWORD",
+ message: req.t("auth:login.INVALID_LOGIN"),
+ code: "INVALID_LOGIN",
},
});
}
|