fix: unify password minimum length to 10 characters across all flows
This commit is contained in:
@@ -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
@@ -227,7 +227,7 @@ export const userRoutes = new Elysia({ prefix: "/user" })
|
||||
},
|
||||
{
|
||||
body: t.Object({
|
||||
newPassword: t.String({ minLength: 8 }),
|
||||
newPassword: t.String({ minLength: 10 }),
|
||||
}),
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user