fix(auth): password min length 6 + show/hide toggle on password inputs
Build & Push Docker Image / build (push) Successful in 2m21s

This commit is contained in:
opencode
2026-08-03 08:01:52 +02:00
parent 68a81ec775
commit 743b177c89
11 changed files with 49 additions and 27 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ router.get("/auth/password-redirect", async (req, res): Promise<void> => {
const ChangePasswordSchema = z.object({
currentPassword: z.string().min(1),
newPassword: z.string().min(8),
newPassword: z.string().min(6),
});
router.post("/auth/me/password", passwordRateLimit, async (req, res): Promise<void> => {
+1 -1
View File
@@ -25,7 +25,7 @@ const UserUpdateSchema = z.object({
});
const SetPasswordSchema = z.object({
password: z.string().min(8),
password: z.string().min(6),
});
router.patch("/users/:id/password", requireAdmin, passwordRateLimit, async (req, res): Promise<void> => {