forked from Github-Mirrors/canaille
refactor: use @example.com for email placeholders
This commit is contained in:
parent
77667c6f52
commit
19159c5a80
4 changed files with 17 additions and 17 deletions
|
@ -178,7 +178,7 @@ class LDAPBackend(Backend):
|
|||
placeholders.append(_("jdoe"))
|
||||
|
||||
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)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class MailTestForm(Form):
|
|||
email_validator,
|
||||
],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
},
|
||||
|
|
|
@ -95,7 +95,7 @@ class LoginForm(Form):
|
|||
_("Login"),
|
||||
validators=[wtforms.validators.DataRequired(), existing_login],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
"inputmode": "email",
|
||||
|
@ -118,7 +118,7 @@ class ForgottenPasswordForm(Form):
|
|||
_("Login"),
|
||||
validators=[wtforms.validators.DataRequired(), existing_login],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"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"
|
||||
),
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
},
|
||||
|
@ -409,7 +409,7 @@ class JoinForm(Form):
|
|||
email_validator,
|
||||
],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
},
|
||||
|
@ -435,7 +435,7 @@ class InvitationForm(Form):
|
|||
unique_email,
|
||||
],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
},
|
||||
|
@ -459,7 +459,7 @@ class EmailConfirmationForm(Form):
|
|||
"This email will be used as a recovery address to reset the password if needed"
|
||||
),
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
"readonly": "true",
|
||||
|
@ -475,7 +475,7 @@ class EmailConfirmationForm(Form):
|
|||
unique_email,
|
||||
],
|
||||
render_kw={
|
||||
"placeholder": _("jane@doe.com"),
|
||||
"placeholder": _("jane.doe@example.com"),
|
||||
"spellcheck": "false",
|
||||
"autocorrect": "off",
|
||||
},
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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."
|
||||
msgstr ""
|
||||
|
||||
#: canaille/app/forms.py:282
|
||||
#: canaille/app/forms.py:281
|
||||
msgid "The page number is not valid"
|
||||
msgstr ""
|
||||
|
||||
#: canaille/app/forms.py:310
|
||||
#: canaille/app/forms.py:309
|
||||
msgid "Not a valid datetime value."
|
||||
msgstr ""
|
||||
|
||||
#: canaille/app/mails_sending_conditions.py:11
|
||||
#: canaille/app/mails_sending_conditions.py:16
|
||||
msgid ""
|
||||
"Password compromise investigation failed. Please contact the "
|
||||
"administrators."
|
||||
msgstr ""
|
||||
|
||||
#: canaille/app/mails_sending_conditions.py:33
|
||||
#: canaille/app/mails_sending_conditions.py:38
|
||||
msgid ""
|
||||
"We have informed your administrator about the failure of the password "
|
||||
"compromise investigation."
|
||||
msgstr ""
|
||||
|
||||
#: canaille/app/mails_sending_conditions.py:40
|
||||
#: canaille/app/mails_sending_conditions.py:45
|
||||
msgid ""
|
||||
"An error occurred while communicating the incident to the administrators."
|
||||
" Please update your password as soon as possible. If this still happens, "
|
||||
|
@ -90,7 +90,7 @@ msgid "jdoe"
|
|||
msgstr ""
|
||||
|
||||
#: canaille/backends/ldap/backend.py:181
|
||||
msgid "john@doe.com"
|
||||
msgid "john.doe@example.com"
|
||||
msgstr ""
|
||||
|
||||
#: 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:412 canaille/core/endpoints/forms.py:438
|
||||
#: canaille/core/endpoints/forms.py:462 canaille/core/endpoints/forms.py:478
|
||||
msgid "jane@doe.com"
|
||||
msgid "jane.doe@example.com"
|
||||
msgstr ""
|
||||
|
||||
#: canaille/core/endpoints/admin.py:42
|
||||
|
|
Loading…
Reference in a new issue