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
+3 -2
View File
@@ -3,6 +3,7 @@ import { Link, useNavigate } from 'react-router-dom';
import { useAuth } from '../context/AuthContext.jsx';
import PasswordStrength from '../components/PasswordStrength.jsx';
import AuthBgCol from '../components/AuthBgCol.jsx';
import PasswordInput from '../components/PasswordInput.jsx';
export default function Register() {
const { register } = useAuth();
@@ -178,9 +179,9 @@ export default function Register() {
<label style={{ fontSize: 14, fontWeight: 500, color: 'var(--text)' }}>
Mot de passe
</label>
<input
<PasswordInput
className="form-input"
type="password" required
required
minLength={appInfo.minPasswordLength || 8}
autoComplete="new-password"
placeholder="••••••••"