refactor: use @example.com for email placeholders

This commit is contained in:
Éloi Rivard 2024-11-20 23:42:58 +01:00
parent 77667c6f52
commit 19159c5a80
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
4 changed files with 17 additions and 17 deletions

View file

@ -178,7 +178,7 @@ class LDAPBackend(Backend):
placeholders.append(_("jdoe")) placeholders.append(_("jdoe"))
if "mail={{login" in user_filter.replace(" ", "") or not placeholders: if "mail={{login" in user_filter.replace(" ", "") or not placeholders:
placeholders.append(_("john@doe.com")) placeholders.append(_("john.doe@example.com"))
return _(" or ").join(placeholders) return _(" or ").join(placeholders)

View file

@ -26,7 +26,7 @@ class MailTestForm(Form):
email_validator, email_validator,
], ],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },

View file

@ -95,7 +95,7 @@ class LoginForm(Form):
_("Login"), _("Login"),
validators=[wtforms.validators.DataRequired(), existing_login], validators=[wtforms.validators.DataRequired(), existing_login],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
"inputmode": "email", "inputmode": "email",
@ -118,7 +118,7 @@ class ForgottenPasswordForm(Form):
_("Login"), _("Login"),
validators=[wtforms.validators.DataRequired(), existing_login], validators=[wtforms.validators.DataRequired(), existing_login],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },
@ -207,7 +207,7 @@ PROFILE_FORM_FIELDS = dict(
"This email will be used as a recovery address to reset the password if needed" "This email will be used as a recovery address to reset the password if needed"
), ),
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },
@ -409,7 +409,7 @@ class JoinForm(Form):
email_validator, email_validator,
], ],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },
@ -435,7 +435,7 @@ class InvitationForm(Form):
unique_email, unique_email,
], ],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },
@ -459,7 +459,7 @@ class EmailConfirmationForm(Form):
"This email will be used as a recovery address to reset the password if needed" "This email will be used as a recovery address to reset the password if needed"
), ),
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
"readonly": "true", "readonly": "true",
@ -475,7 +475,7 @@ class EmailConfirmationForm(Form):
unique_email, unique_email,
], ],
render_kw={ render_kw={
"placeholder": _("jane@doe.com"), "placeholder": _("jane.doe@example.com"),
"spellcheck": "false", "spellcheck": "false",
"autocorrect": "off", "autocorrect": "off",
}, },

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-11-19 15:43+0100\n" "POT-Creation-Date: 2024-11-20 23:42+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -45,27 +45,27 @@ msgstr ""
msgid "This password appears on public compromission databases and is not secure." msgid "This password appears on public compromission databases and is not secure."
msgstr "" msgstr ""
#: canaille/app/forms.py:282 #: canaille/app/forms.py:281
msgid "The page number is not valid" msgid "The page number is not valid"
msgstr "" msgstr ""
#: canaille/app/forms.py:310 #: canaille/app/forms.py:309
msgid "Not a valid datetime value." msgid "Not a valid datetime value."
msgstr "" msgstr ""
#: canaille/app/mails_sending_conditions.py:11 #: canaille/app/mails_sending_conditions.py:16
msgid "" msgid ""
"Password compromise investigation failed. Please contact the " "Password compromise investigation failed. Please contact the "
"administrators." "administrators."
msgstr "" msgstr ""
#: canaille/app/mails_sending_conditions.py:33 #: canaille/app/mails_sending_conditions.py:38
msgid "" msgid ""
"We have informed your administrator about the failure of the password " "We have informed your administrator about the failure of the password "
"compromise investigation." "compromise investigation."
msgstr "" msgstr ""
#: canaille/app/mails_sending_conditions.py:40 #: canaille/app/mails_sending_conditions.py:45
msgid "" msgid ""
"An error occurred while communicating the incident to the administrators." "An error occurred while communicating the incident to the administrators."
" Please update your password as soon as possible. If this still happens, " " Please update your password as soon as possible. If this still happens, "
@ -90,7 +90,7 @@ msgid "jdoe"
msgstr "" msgstr ""
#: canaille/backends/ldap/backend.py:181 #: canaille/backends/ldap/backend.py:181
msgid "john@doe.com" msgid "john.doe@example.com"
msgstr "" msgstr ""
#: canaille/backends/ldap/backend.py:183 #: canaille/backends/ldap/backend.py:183
@ -293,7 +293,7 @@ msgstr ""
#: canaille/core/endpoints/forms.py:121 canaille/core/endpoints/forms.py:210 #: canaille/core/endpoints/forms.py:121 canaille/core/endpoints/forms.py:210
#: canaille/core/endpoints/forms.py:412 canaille/core/endpoints/forms.py:438 #: canaille/core/endpoints/forms.py:412 canaille/core/endpoints/forms.py:438
#: canaille/core/endpoints/forms.py:462 canaille/core/endpoints/forms.py:478 #: canaille/core/endpoints/forms.py:462 canaille/core/endpoints/forms.py:478
msgid "jane@doe.com" msgid "jane.doe@example.com"
msgstr "" msgstr ""
#: canaille/core/endpoints/admin.py:42 #: canaille/core/endpoints/admin.py:42