Projet

Général

Profil

0001-forms-do-not-call-password-validation-JS-too-early-5.patch

Valentin Deniaud, 05 mai 2021 14:48

Télécharger (994 octets)

Voir les différences:

Subject: [PATCH] forms: do not call password validation JS too early (#53651)

 src/authentic2/forms/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2/forms/widgets.py
296 296
            _id = attrs.get('id')
297 297
            if _id and _id.endswith('2'):
298 298
                other_id = _id[:-1] + '1'
299
                output += '''\n<script>a2_password_check_equality(%s, %s)</script>''' % (
299
                output += '''\n<script>$(a2_password_check_equality(%s, %s))</script>''' % (
300 300
                    json.dumps(other_id),
301 301
                    json.dumps(_id),
302 302
                )
303
-