From 571df0f9110395341a5d75cf4bd1e197ef03f49e Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 13 May 2025 17:34:13 +0800 Subject: [PATCH] fix(session): increase password length limit to 128 --- src/component/Pages/Login/Phases/PhaseCollectPassword.tsx | 2 ++ src/component/Pages/Login/Signup.tsx | 2 ++ src/component/Pages/Setting/Security/SecuritySetting.tsx | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/component/Pages/Login/Phases/PhaseCollectPassword.tsx b/src/component/Pages/Login/Phases/PhaseCollectPassword.tsx index 8e09669..70e62a2 100644 --- a/src/component/Pages/Login/Phases/PhaseCollectPassword.tsx +++ b/src/component/Pages/Login/Phases/PhaseCollectPassword.tsx @@ -48,6 +48,8 @@ const PhaseCollectPassword = ({ type: "password", id: "password", required: "true", + maxLength: 128, + minLength: 4, }} onChange={(e) => setPwd(e.target.value)} icon={} diff --git a/src/component/Pages/Login/Signup.tsx b/src/component/Pages/Login/Signup.tsx index 0367980..a110b99 100644 --- a/src/component/Pages/Login/Signup.tsx +++ b/src/component/Pages/Login/Signup.tsx @@ -180,6 +180,7 @@ const SignUp = () => { id: "password", required: "true", minLength: 6, + maxLength: 128, }} onChange={(e) => setPassword(e.target.value)} icon={} @@ -197,6 +198,7 @@ const SignUp = () => { id: "repeatPassword", required: "true", minLength: 6, + maxLength: 128, }} onChange={(e) => setPasswordRepeat(e.target.value)} icon={} diff --git a/src/component/Pages/Setting/Security/SecuritySetting.tsx b/src/component/Pages/Setting/Security/SecuritySetting.tsx index 738f8b6..8a54572 100644 --- a/src/component/Pages/Setting/Security/SecuritySetting.tsx +++ b/src/component/Pages/Setting/Security/SecuritySetting.tsx @@ -140,7 +140,7 @@ const SecuritySetting = ({ setting, setSetting }: ProfileSettingProps) => { inputProps={{ type: "password", minLength: 6, - maxLength: 64, + maxLength: 128, }} /> { inputProps={{ type: "password", minLength: 6, - maxLength: 64, + maxLength: 128, }} />