From 7d0303d5df7f9747070e1ca28f16da1ba39ab2cb Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 5 May 2021 14:40:20 +0200 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(-) diff --git a/src/authentic2/forms/widgets.py b/src/authentic2/forms/widgets.py index 6aa0df71c..244c0ad91 100644 --- a/src/authentic2/forms/widgets.py +++ b/src/authentic2/forms/widgets.py @@ -296,7 +296,7 @@ class CheckPasswordInput(PasswordInput): _id = attrs.get('id') if _id and _id.endswith('2'): other_id = _id[:-1] + '1' - output += '''\n''' % ( + output += '''\n''' % ( json.dumps(other_id), json.dumps(_id), )