Règle de gestion des mots de passe

This commit is contained in:
2026-06-15 22:44:17 +02:00
parent ceda5bcf1b
commit 01526a5551
6 changed files with 105 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { useState, useEffect } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { useAuth } from '../context/AuthContext.jsx';
import PasswordStrength from '../components/PasswordStrength.jsx';
export default function Register() {
const { register } = useAuth();
@@ -205,7 +206,7 @@ export default function Register() {
<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>
<label style={{ fontSize: 14, fontWeight: 500, color: 'var(--text)' }}>
Mot de passe <span style={{ color: 'var(--text-muted)', fontWeight: 400 }}>(8 car. min.)</span>
Mot de passe
</label>
<input
className="form-input"
@@ -217,6 +218,7 @@ export default function Register() {
onChange={set('password')}
style={{ width: '100%' }}
/>
<PasswordStrength password={form.password} />
</div>
<button