Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge pull request #885 from ragnarbull/ragnarbull-auth-pwd-fixes

BlackMagiq76cf79d20160
diff --cc backend/src/routes/v1/auth.ts
index f373567f2c,ab141ac05e..d9c0d61209
--- a/backend/src/routes/v1/auth.ts
+++ b/backend/src/routes/v1/auth.ts
@@@ -8,19 -8,21 +8,21 @@@ import { AuthMode } from "../../variabl
router.post("/token", validateRequest, authController.getNewToken);
- router.post( // TODO endpoint: deprecate (moved to api/v3/auth/login1)
+ router.post(
+ // TODO endpoint: deprecate (moved to api/v3/auth/login1)
"/login1",
authLimiter,
- body("email").exists().trim().notEmpty(),
+ body("email").exists().trim().notEmpty().toLowerCase(),
body("clientPublicKey").exists().trim().notEmpty(),
validateRequest,
authController.login1
);
- router.post( // TODO endpoint: deprecate (moved to api/v3/auth/login2)
+ router.post(
+ // TODO endpoint: deprecate (moved to api/v3/auth/login2)
"/login2",
authLimiter,
- body("email").exists().trim().notEmpty(),
+ body("email").exists().trim().notEmpty().toLowerCase(),
body("clientProof").exists().trim().notEmpty(),
validateRequest,
authController.login2