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
+5 -4
View File
@@ -2,6 +2,7 @@ import { useState, useEffect } from 'react';
import { Link, useNavigate, useSearchParams } from 'react-router-dom';
import PasswordStrength from '../components/PasswordStrength.jsx';
import AuthBgCol from '../components/AuthBgCol.jsx';
import PasswordInput from '../components/PasswordInput.jsx';
export default function ResetPassword() {
const [params] = useSearchParams();
@@ -154,9 +155,9 @@ export default function ResetPassword() {
<label style={{ fontSize: 14, fontWeight: 500, color: 'var(--text)' }}>
Nouveau mot de passe
</label>
<input
<PasswordInput
className="form-input"
type="password" required minLength={appInfo.minPasswordLength || 8}
required minLength={appInfo.minPasswordLength || 8}
autoComplete="new-password"
placeholder="••••••••"
value={password}
@@ -170,9 +171,9 @@ export default function ResetPassword() {
<label style={{ fontSize: 14, fontWeight: 500, color: 'var(--text)' }}>
Confirmer le mot de passe
</label>
<input
<PasswordInput
className="form-input"
type="password" required minLength={appInfo.minPasswordLength || 8}
required minLength={appInfo.minPasswordLength || 8}
autoComplete="new-password"
placeholder="••••••••"
value={password2}