Projet

Général

Profil

Bug #6805

Give all password requirements at once

Ajouté par Frédéric Péters il y a environ 9 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
24 mars 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

It is frustrating to enter a password that is too short, receive a message that it must be at least n characters long, type a new one, and get another refusal because it doesn't contain the appropriate classes of characters. Password requirements should all be displayed at once.

Related upstream django discussion: https://groups.google.com/forum/#!topic/django-developers/9GBhgGXmEKs


Fichiers

Révisions associées

Révision 00d4fac3 (diff)
Ajouté par Benjamin Dauvergne il y a presque 9 ans

report all password requirements at once on password input (fixes #6805)

Révision ba9e8bd6 (diff)
Ajouté par Benjamin Dauvergne il y a presque 9 ans

update french translation (#6805)

Historique

#2

Mis à jour par Frédéric Péters il y a environ 9 ans

Perhaps "Your password must match the regular expression: %(regexp)s'" will prevent people from even trying to enter a password, I would leave that one out. I would also maybe s/Your password/The password/ in the message.

#3

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

The regexp message is here to recall people that they must set custom message through app_settings.A2_PASSWORD_POLICY_REGEX_ERROR_MSG, it is not meant for real user consumption. If you prefer I could just add a check that the two settings are defined using the new setting checks from Django 1.7 and crashing on launch.

#4

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

Benjamin Dauvergne a écrit :

The regexp message is here to recall people that they must set custom message through app_settings.A2_PASSWORD_POLICY_REGEX_ERROR_MSG, it is not meant for real user consumption. If you prefer I could just add a check that the two settings are defined using the new setting checks from Django 1.7 and crashing on launch.

I reminded me that it will not work with a multitenant deployment as I cannot check tenant settings.

#5

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Version cible mis à 2.2.0
#6

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

Message changed for :

+"Your password must match the regular expression: %(regexp)s, please change " 
+"this message using the A2_PASSWORD_POLICY_REGEX_ERROR_MSG setting." 

#7

Mis à jour par Frédéric Péters il y a environ 9 ans

  • Statut changé de Nouveau à En cours

ack.

#8

Mis à jour par Benjamin Dauvergne il y a presque 9 ans

  • Statut changé de En cours à Rejeté
#9

Mis à jour par Benjamin Dauvergne il y a presque 9 ans

  • Statut changé de Rejeté à Nouveau
#10

Mis à jour par Frédéric Péters il y a presque 9 ans

I'm still fine with it but the patch no longer apply.

#11

Mis à jour par Benjamin Dauvergne il y a presque 9 ans

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#12

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#13

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Solution déployée à Fermé

Formats disponibles : Atom PDF