Mot de passe local : longueur minimale 8 caracteres (au lieu de 10)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LNfwm5Qp7Vbow7Fw77fLxi
This commit is contained in:
claude BotandClaude Opus 5.5 committed 2026-11-23 09:00:25 +01:00
1 parent a69a6233dd
commit 7e1358ab1e
3 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -96,8 +96,8 @@ export function Login({ me, onLoggedIn }: Props) {
</>
)}
<label className="field">
<span>{mode === "register" ? "Mot de passe (10 caractères minimum)" : "Mot de passe"}</span>
<input type="password" required minLength={mode === "register" ? 10 : undefined} autoComplete={mode === "login" ? "current-password" : "new-password"} value={f.password} onChange={set("password")} />
<span>{mode === "register" ? "Mot de passe (8 caractères minimum)" : "Mot de passe"}</span>
<input type="password" required minLength={mode === "register" ? 8 : undefined} autoComplete={mode === "login" ? "current-password" : "new-password"} value={f.password} onChange={set("password")} />
</label>
{mode === "register" && (
<label className="field">
+6 -6
View File
@@ -158,11 +158,11 @@ function AccountTab({ me, onError, onChanged }: { me: Me; onError: (m: string |
<input type="password" autoComplete="current-password" value={current} onChange={(e) => setCurrent(e.target.value)} />
</label>
<label className="field">
<span>Nouveau mot de passe (10 caractères minimum)</span>
<input type="password" autoComplete="new-password" minLength={10} value={next} onChange={(e) => setNext(e.target.value)} />
<span>Nouveau mot de passe (8 caractères minimum)</span>
<input type="password" autoComplete="new-password" minLength={8} value={next} onChange={(e) => setNext(e.target.value)} />
</label>
<div>
<button className="primary" type="submit" disabled={!current || next.length < 10}>
<button className="primary" type="submit" disabled={!current || next.length < 8}>
Changer le mot de passe
</button>
</div>
@@ -242,7 +242,7 @@ function UsersTab({ me, onError, onChanged }: { me: Me; onError: (m: string | nu
<input type="email" value={form.email} onChange={(e) => setForm({ ...form, email: e.target.value })} />
</label>
<label className="field">
<span>Mot de passe (10 caractères minimum)</span>
<span>Mot de passe (8 caractères minimum)</span>
<input type="password" autoComplete="new-password" value={form.password} onChange={(e) => setForm({ ...form, password: e.target.value })} />
</label>
<label className="field">
@@ -254,7 +254,7 @@ function UsersTab({ me, onError, onChanged }: { me: Me; onError: (m: string | nu
</label>
</div>
<div>
<button className="primary" type="submit" disabled={form.username.length < 3 || form.password.length < 10}>
<button className="primary" type="submit" disabled={form.username.length < 3 || form.password.length < 8}>
Créer
</button>
</div>
@@ -333,7 +333,7 @@ function UsersTab({ me, onError, onChanged }: { me: Me; onError: (m: string | nu
}}
>
<label className="field">
<span>Mot de passe (10 caractères minimum)</span>
<span>Mot de passe (8 caractères minimum)</span>
<input type="password" autoFocus autoComplete="new-password" value={newPassword} onChange={(e) => setNewPassword(e.target.value)} />
</label>
</ConfirmDialog>