fix: unify password minimum length to 10 characters across all flows
This commit is contained in:
@@ -81,8 +81,8 @@ export function SettingsSecurityTab() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newPassword.length < 8) {
|
if (newPassword.length < 10) {
|
||||||
setPasswordMessage({ type: "error", text: "Password must be at least 8 characters" })
|
setPasswordMessage({ type: "error", text: "Password must be at least 10 characters" })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -227,7 +227,7 @@ export const userRoutes = new Elysia({ prefix: "/user" })
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
body: t.Object({
|
body: t.Object({
|
||||||
newPassword: t.String({ minLength: 8 }),
|
newPassword: t.String({ minLength: 10 }),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user