diff --git a/components/profile/settings-security-tab.tsx b/components/profile/settings-security-tab.tsx index 9b2d092..d89c088 100644 --- a/components/profile/settings-security-tab.tsx +++ b/components/profile/settings-security-tab.tsx @@ -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 } diff --git a/lib/api/user.ts b/lib/api/user.ts index f530d7f..afc2b19 100644 --- a/lib/api/user.ts +++ b/lib/api/user.ts @@ -227,7 +227,7 @@ export const userRoutes = new Elysia({ prefix: "/user" }) }, { body: t.Object({ - newPassword: t.String({ minLength: 8 }), + newPassword: t.String({ minLength: 10 }), }), }, )