diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-08-13 15:18:42 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-08-13 15:18:42 +1000 |
commit | 2cf383349909e0d6ea90bab7e7a4c7e256e39130 (patch) | |
tree | 5a138c1d72527f041da91cb15777d743549dd598 /src | |
parent | Fix OOM on large guild join (diff) | |
download | server-2cf383349909e0d6ea90bab7e7a4c7e256e39130.tar.xz |
remove INVALID_PASSWORD error response. close #1090
Diffstat (limited to 'src')
-rw-r--r-- | src/api/routes/auth/login.ts | 12 |
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", }, }); } |