summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/api/routes/auth/login.ts12
1 files changed, 10 insertions, 2 deletions
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", }, }); }