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
@@ -3,6 +3,7 @@ import { Link, useNavigate } from 'react-router-dom';
import { useAuth } from '../context/AuthContext.jsx';
import { api } from '../api.js';
import AuthBgCol from '../components/AuthBgCol.jsx';
import PasswordInput from '../components/PasswordInput.jsx';
// ── Helpers ────────────────────────────────────────────────────────────────
const DEVICE_KEY = 'cl_device_token';
@@ -217,7 +218,7 @@ export default function Login() {
<label style={{ fontSize: 14, fontWeight: 500, color: 'var(--text)' }}>Mot de passe</label>
<Link to="/forgot-password" style={{ fontSize: 13, color: 'var(--text-muted)', textDecoration: 'underline' }}>Mot de passe oublié ?</Link>
</div>
<input className="form-input" type="password" required autoComplete="current-password" placeholder="••••••••"
<PasswordInput className="form-input" required autoComplete="current-password" placeholder="••••••••"
value={password} onChange={e => setPassword(e.target.value)} style={{ width: '100%' }} />
</div>