fix: unify password minimum length to 10 characters across all flows

This commit is contained in:
2026-04-26 12:13:08 -05:00
parent 3e86b34116
commit 12bebf5389
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ export function SettingsSecurityTab() {
return
}
if (newPassword.length < 8) {
setPasswordMessage({ type: "error", text: "Password must be at least 8 characters" })
if (newPassword.length < 10) {
setPasswordMessage({ type: "error", text: "Password must be at least 10 characters" })
return
}
+1 -1
View File
@@ -227,7 +227,7 @@ export const userRoutes = new Elysia({ prefix: "/user" })
},
{
body: t.Object({
newPassword: t.String({ minLength: 8 }),
newPassword: t.String({ minLength: 10 }),
}),
},
)