La demande de mot de passe permet d’aider un utilisateur à créer ou saisir un mot de passe.
<div class="fr-password" id="password-4997">
<label class="fr-label" for="password-4997-input">
Mot de passe
</label>
<div class="fr-input-wrap">
<input class="fr-password__input fr-input" aria-describedby="password-4997-input-messages" aria-required="true" name="password" autocomplete="new-password" id="password-4997-input" type="password">
</div>
<div class="fr-messages-group" id="password-4997-input-messages" aria-live="assertive">
<p class="fr-message" id="password-4997-input-message">Votre mot de passe doit contenir :</p>
<p class="fr-message fr-message--info" id="password-4997-input-message-info">12 caractères minimum</p>
<p class="fr-message fr-message--info" id="password-4997-input-message-info-1">1 caractère spécial minimum</p>
<p class="fr-message fr-message--info" id="password-4997-input-message-info-2">1 chiffre minimum</p>
</div>
<div class="fr-password__checkbox fr-checkbox-group fr-checkbox-group--sm">
<input aria-label="Afficher le mot de passe" id="password-4997-show" type="checkbox">
<label class="fr--password__checkbox fr-label" for="password-4997-show">
Afficher
</label>
</div>
</div>
<div class="fr-password" id="password-5000">
<label class="fr-label" for="password-5000-input">
Mot de passe
<span class="fr-hint-text">Texte de description additionnel</span>
</label>
<div class="fr-input-wrap">
<input class="fr-password__input fr-input" aria-describedby="password-5000-input-messages" aria-required="true" name="password" autocomplete="new-password" id="password-5000-input" type="password">
</div>
<div class="fr-messages-group" id="password-5000-input-messages" aria-live="assertive">
<p class="fr-message" id="password-5000-input-message">Votre mot de passe doit contenir :</p>
<p class="fr-message fr-message--info" id="password-5000-input-message-info">12 caractères minimum</p>
<p class="fr-message fr-message--info" id="password-5000-input-message-info-1">1 caractère spécial minimum</p>
<p class="fr-message fr-message--info" id="password-5000-input-message-info-2">1 chiffre minimum</p>
</div>
<div class="fr-password__checkbox fr-checkbox-group fr-checkbox-group--sm">
<input aria-label="Afficher le mot de passe" id="password-5000-show" type="checkbox">
<label class="fr--password__checkbox fr-label" for="password-5000-show">
Afficher
</label>
</div>
</div>
<div class="fr-password" id="password-5003">
<label class="fr-label" for="password-5003-input">
Mot de passe
</label>
<div class="fr-input-wrap">
<input class="fr-password__input fr-input" aria-describedby="password-5003-input-messages" aria-required="true" name="password" value="x8A@" autocomplete="new-password" id="password-5003-input" type="password">
</div>
<div class="fr-messages-group" id="password-5003-input-messages" aria-live="assertive">
<p class="fr-message" id="password-5003-input-message">Votre mot de passe doit contenir :</p>
<p class="fr-message fr-message--error" id="password-5003-input-message-error">12 caractères minimum</p>
<p class="fr-message fr-message--valid" id="password-5003-input-message-valid">1 caractère spécial minimum</p>
<p class="fr-message fr-message--valid" id="password-5003-input-message-valid-1">1 chiffre minimum</p>
</div>
<div class="fr-password__checkbox fr-checkbox-group fr-checkbox-group--sm">
<input aria-label="Afficher le mot de passe" id="password-5003-show" type="checkbox">
<label class="fr--password__checkbox fr-label" for="password-5003-show">
Afficher
</label>
</div>
</div>
<div class="fr-password" id="password-5006">
<label class="fr-label" for="password-5006-input">
Mot de passe
</label>
<div class="fr-input-wrap">
<input class="fr-password__input fr-input" aria-describedby="password-5006-input-messages" aria-required="true" name="password" autocomplete="current-password" id="password-5006-input" type="password">
</div>
<div class="fr-messages-group" id="password-5006-input-messages" aria-live="assertive">
</div>
<div class="fr-password__checkbox fr-checkbox-group fr-checkbox-group--sm">
<input aria-label="Afficher le mot de passe" id="password-5006-show" type="checkbox">
<label class="fr--password__checkbox fr-label" for="password-5006-show">
Afficher
</label>
</div>
<p>
<a href="" class="fr-link">Mot de passe oublié ?</a>
</p>
</div>