Ajout de la possibilité de voir le mot de passe

This commit is contained in:
2026-07-03 18:31:59 +02:00
parent 3c5aa635c4
commit 563063ba17
7 changed files with 69 additions and 15 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import ConfirmModal from '../../components/ConfirmModal.jsx';
import Modal from '../../components/Modal.jsx';
import ResultBanner from '../../components/ResultBanner.jsx';
import PasswordStrength from '../../components/PasswordStrength.jsx';
import PasswordInput from '../../components/PasswordInput.jsx';
import { fmt, Badge, UserStatusBadge } from './adminHelpers.jsx';
// ── Helpers ────────────────────────────────────────────────────────────────
@@ -363,7 +364,7 @@ function CreateUserModal({ open, onClose, onCreated }) {
</div>
<div>
<label>Mot de passe *</label>
<input type="password" required minLength={minPasswordLength} autoComplete="new-password" value={form.password} onChange={e => set('password', e.target.value)} placeholder={`${minPasswordLength} caractères minimum`} />
<PasswordInput required minLength={minPasswordLength} autoComplete="new-password" value={form.password} onChange={e => set('password', e.target.value)} placeholder={`${minPasswordLength} caractères minimum`} />
<PasswordStrength password={form.password} minLength={minPasswordLength} />
</div>
<div>