Maj Section Général

This commit is contained in:
2026-06-15 23:03:37 +02:00
parent 01526a5551
commit 032a370e7d
15 changed files with 492 additions and 57 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ export default function Register() {
const [form, setForm] = useState({ email: '', password: '', displayName: '' });
const [err, setErr] = useState(null);
const [busy, setBusy] = useState(false);
const [appInfo, setAppInfo] = useState({ appName: 'Crowdlending Tracker', iconUrl: null });
const [appInfo, setAppInfo] = useState({ appName: 'Crowdlending Tracker', iconUrl: null, minPasswordLength: 8 });
useEffect(() => {
fetch('/api/app-info')
@@ -211,14 +211,14 @@ export default function Register() {
<input
className="form-input"
type="password" required
minLength={8}
minLength={appInfo.minPasswordLength || 8}
autoComplete="new-password"
placeholder="••••••••"
value={form.password}
onChange={set('password')}
style={{ width: '100%' }}
/>
<PasswordStrength password={form.password} />
<PasswordStrength password={form.password} minLength={appInfo.minPasswordLength || 8} />
</div>
<button