8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Add help text for password checkbox in user creation

This commit is contained in:
Jean-Romain Garnier 2020-04-16 17:59:53 +00:00 committed by Supelec Rezo Rennes
parent dbe8223efc
commit e57ec2ccd1

View file

@ -384,7 +384,18 @@ class AdherentCreationForm(AdherentForm):
un champ mot de passe"""
if OptionalUser.get_cached_value("allow_set_password_during_user_creation"):
# Champ pour choisir si un lien est envoyé par mail pour le mot de passe
init_password_by_mail = forms.BooleanField(required=False, initial=True)
init_password_by_mail_info = _(
"If this options is set, you will receive a link to set"
" your initial password by email. If you do not have"
" any means of accessing your emails, you can disable"
" this option to set your password immediatly."
)
init_password_by_mail = forms.BooleanField(
help_text=init_password_by_mail_info,
required=False,
initial=True
)
init_password_by_mail.label = _("Send password reset link by email.")
# Champs pour initialiser le mot de passe