From 018fd5249f137d3127a1f7d65fef2ee7152b3ce2 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre Date: Wed, 2 Nov 2022 10:26:26 +0100 Subject: [PATCH 1/2] Clearer password reset error message --- authens/locale/en/LC_MESSAGES/django.mo | Bin 3432 -> 3421 bytes authens/locale/en/LC_MESSAGES/django.po | 49 ++++++++++++++---------- authens/views.py | 2 +- 3 files changed, 30 insertions(+), 21 deletions(-) diff --git a/authens/locale/en/LC_MESSAGES/django.mo b/authens/locale/en/LC_MESSAGES/django.mo index 1b7aaa3ea2414beea2b70caf4c117606362e68c1..b434f4799ddf29b9ef753cc7ee56f0117cc7dfbb 100644 GIT binary patch delta 852 zcmYk)O=}ZD7{KvKnzkm5Z%uq@v}FnwTP%u)egUHdU%-opqF7vZ2Ro4Nmh2>2JoM&4 ziwGfj@zA0o@glMxz(YQO-g;3%PZiXg_=@!ZY!n&v*;J;Uva`N*V0n0{+71czLM5zd%-dn3qxZPhk~n znCE`YtB3spWluD&+DWr%JZ|v`U8l|8) zl$*SOgj5SS!TIVsgMD}#CBQ>GgyxBoI&#Vr$Pi9M3r3Oi7oK7a`9YNZp{xSM! zf0`a6B}u)KlB6w7UY-vjO)vc#7)y%fWFxzlNvgT`nJdju`_a;}GumqzU;D;sv*g*j zHaBhT%&cZZe<3is(d*jKI_uSK>^U2Sx@Ar1G(XjwR`;H{hS4T$MJv6oo^0!(7s>JA zV*^ROa3|A#P@Jv>+C|ze8cmqM_nZl|7X%Fx$Fq955w&a}E1~v$KWY;AhINbVxAFf; O#WU@%Bahl|ifh~a{C;Zy delta 830 zcmXxiO=uHA6u|M9G)--rwrSF+O%t7^g&=5Eu;|5$QKTYxQV{JSWJkLgcd=cIU(ka` zwIE9oFIqe(5u{2$5D|pE2p&W{iXZf%X9bVa|6A+8{e2je*o;|n~7F^=G1mq-!E@d@t79{h%V_yha#7nboa>i*G;NC|i07Li4% zv(N-*Fozd$0me$St2UOuB1 zyoUOUf8!C%6KsmLoMOSLN)u^3DP|OPaGJ^87{jehUcXc#CtaN3?Ir28WGYKifK-`O zki2z`u0zY#p0$51Nze8F;9?{fK+l$=Om0c3b2oiERjLQRZ?AZPZ{l`yHn<$Ot#LY) z%vvg%$v#V+j7+u~O?Brd7d-2S#;wIq!#QiLzYtuF+a_Kyty;sKv-9)Tc)sgh+KABG zv$Ly^1aF2K{anLqS=Z_8>${bTcIO^NZ~JRwp$P*M&i?ynvk_X?G~6VZ6Me`ntplQs BZY%%* diff --git a/authens/locale/en/LC_MESSAGES/django.po b/authens/locale/en/LC_MESSAGES/django.po index 801d582..332d2d0 100644 --- a/authens/locale/en/LC_MESSAGES/django.po +++ b/authens/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-28 20:40+0100\n" +"POT-Creation-Date: 2022-11-02 10:22+0100\n" "PO-Revision-Date: 2021-01-30 20:48+0100\n" "Last-Translator: Tom Hubrecht \n" "Language-Team: \n" @@ -22,7 +22,7 @@ msgstr "" msgid "Ancien login clipper" msgstr "Old clipper username" -#: forms.py:18 templates/authens/login_switch.html:14 +#: forms.py:18 templates/authens/login_switch.html:15 msgid "Mot de passe" msgstr "Password" @@ -39,7 +39,7 @@ msgstr "" "No user exists with this username, this entrance year and/or this password. " "Please check your entry. Attention, all fields are case sensitive!" -#: models.py:19 models.py:57 +#: models.py:19 models.py:60 msgid "utilisateurice" msgstr "user" @@ -47,36 +47,36 @@ msgstr "user" msgid "login CAS" msgstr "CAS username" -#: models.py:30 models.py:67 +#: models.py:30 models.py:70 msgid "année de création du compte CAS" msgstr "year of CAS account creation" -#: models.py:34 +#: models.py:37 msgid "Compte CAS" msgstr "CAS account" -#: models.py:35 +#: models.py:38 msgid "Comptes CAS" msgstr "CAS accounts" -#: models.py:39 +#: models.py:42 #, python-format msgid "compte CAS %(cas_login)s (promo %(entrance_year)s) lié à %(user)s" msgstr "CAS account %(cas_login)s (year %(entrance_year)s) linked to %(user)s" -#: models.py:63 +#: models.py:66 msgid "ancien login CAS" msgstr "old CAS username" -#: models.py:78 +#: models.py:81 msgid "Ancien compte CAS" msgstr "Old CAS account" -#: models.py:79 +#: models.py:82 msgid "Anciens comptes CAS" msgstr "Old CAS accounts" -#: models.py:83 +#: models.py:86 #, python-format msgid "" "Ancien compte CAS %(cas_login)s (promo %(entrance_year)s) lié à %(user)s" @@ -91,11 +91,11 @@ msgstr "Connection method" msgid "Clipper" msgstr "Clipper" -#: templates/authens/login_switch.html:18 +#: templates/authens/login_switch.html:20 msgid "Vieilleux" msgstr "Alumni" -#: templates/authens/login_switch.html:25 +#: templates/authens/login_switch.html:27 #, python-format msgid "" "Si votre fin de scolarité approche, créez un mot de passe pour votre compte " @@ -153,16 +153,25 @@ msgstr "For your information, your username is the following: %(username)s" msgid "L'équipe %(site_name)s" msgstr "The %(site_name)s team" -#: views.py:86 -msgid "Connexion échouée !" +#: views.py:89 +#, fuzzy +#| msgid "Connexion échouée !" +msgid "Connection échouée !" msgstr "Connection failed!" -#: views.py:102 +#: views.py:105 msgid "" -"Un email de réinitialisation du mot de passe vient d'être envoyé à l'adresse " -"indiquée !" -msgstr "A password reset email has just been sent to the indicated address!" +"Si un compte avec cet email existe, un email de réinitialisation vient de " +"lui être envoyé !" +msgstr "" +"A password reset email has just been send to the inidcated address, " +"provided an account with this email exists)" -#: views.py:112 +#: views.py:115 msgid "Mot de passe modifié avec succès !" msgstr "Password changed successfully!" + +#~ msgid "" +#~ "Un email de réinitialisation du mot de passe vient d'être envoyé à " +#~ "l'adresse indiquée !" +#~ msgstr "A password reset email has just been sent to the indicated address!" diff --git a/authens/views.py b/authens/views.py index 699cda5..0478861 100644 --- a/authens/views.py +++ b/authens/views.py @@ -102,7 +102,7 @@ class PasswordResetView(SuccessMessageMixin, auth_views.PasswordResetView): success_url = reverse_lazy("authens:login") success_message = _( - "Un email de réinitialisation vient d'être envoyé à l'adresse indiquée !" + "Si un compte avec cet email existe, un email de réinitialisation vient de lui être envoyé !" ) From 83d63845ae94e74998af487b78c4aa4d4ed48203 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre Date: Wed, 2 Nov 2022 10:26:52 +0100 Subject: [PATCH 2/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c4cc78..8a51435 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ AUTHENS_ALLOW_STAFF = True ### Création d'utilisateurices -AuthENS maintient une tables des comptes clipper connus. +AuthENS maintient une table des comptes clipper connus. Cette table est automatiquement mise à jour lors qu'une personne se connecte via le CAS pour la première fois. En revanche lorsqu'un nouveau compte est créé manuellement et que ce compte