fix : 12 to 6 for password

This commit is contained in:
2026-10-02 12:15:37 +07:00 Unverified
parent 96c27f8fc3
commit 724234a6f9
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function AccountForm({ mode, siteKey, nextPath }: {
<CardContent className="flex flex-col gap-4"><form onSubmit={submit}><FieldGroup>
{register && <Field><FieldLabel htmlFor="name">ชื่อ</FieldLabel><Input id="name" name="name" required maxLength={100} /></Field>}
<Field><FieldLabel htmlFor="email">อีเมล</FieldLabel><Input id="email" name="email" type="email" required autoComplete="email" /></Field>
<Field><FieldLabel htmlFor="password">รหัสผ่าน</FieldLabel><Input id="password" name="password" type="password" required minLength={12} autoComplete={register ? "new-password" : "current-password"} /></Field>
<Field><FieldLabel htmlFor="password">รหัสผ่าน</FieldLabel><Input id="password" name="password" type="password" required minLength={6} autoComplete={register ? "new-password" : "current-password"} /></Field>
{captcha && <div ref={container} />}
<Button type="submit" disabled={busy || (captcha && !token)}>{busy ? "กำลังดำเนินการ..." : register ? "สมัครสมาชิก" : "เข้าสู่ระบบ"}</Button>
</FieldGroup></form>