Changement de mot de passe requis

Pour des raisons de sécurité, vous devez changer votre mot de passe avant de continuer.

{{ form_start(changePasswordForm, {'attr': {'data-controller': 'change-password'}}) }}
{% if changePasswordForm.currentPassword is defined %}
{{ form_label(changePasswordForm.currentPassword, 'Mot de passe actuel', {'label_attr': {'class': 'block text-sm font-medium text-gray-700 mb-2'}}) }}
{{ form_widget(changePasswordForm.currentPassword, { 'attr': { 'class': 'w-full px-3 py-2 pr-12 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500', 'data-change-password-target': 'currentPassword' } }) }}
{{ form_errors(changePasswordForm.currentPassword) }}
{% endif %}
{{ form_label(changePasswordForm.newPassword.first, 'Nouveau mot de passe', {'label_attr': {'class': 'block text-sm font-medium text-gray-700 mb-2'}}) }}
{{ form_widget(changePasswordForm.newPassword.first, { 'attr': { 'class': 'w-full px-3 py-2 pr-12 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500', 'data-change-password-target': 'newPassword' } }) }}
{{ form_errors(changePasswordForm.newPassword.first) }}
{{ form_label(changePasswordForm.newPassword.second, 'Confirmer le mot de passe', {'label_attr': {'class': 'block text-sm font-medium text-gray-700 mb-2'}}) }}
{{ form_widget(changePasswordForm.newPassword.second, { 'attr': { 'class': 'w-full px-3 py-2 pr-12 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500', 'data-change-password-target': 'confirmPassword' } }) }}
{{ form_errors(changePasswordForm.newPassword.second) }}
{{ form_rest(changePasswordForm) }}

Conseils pour un mot de passe fort

  • Au moins 8 caractères
  • Utilisez des majuscules et des minuscules
  • Incluez des chiffres et des caractères spéciaux
{{ form_end(changePasswordForm) }}