forms: do not call password validation JS too early (#53651)
This commit is contained in:
parent
318c709f24
commit
7d0303d5df
|
@ -296,7 +296,7 @@ class CheckPasswordInput(PasswordInput):
|
|||
_id = attrs.get('id')
|
||||
if _id and _id.endswith('2'):
|
||||
other_id = _id[:-1] + '1'
|
||||
output += '''\n<script>a2_password_check_equality(%s, %s)</script>''' % (
|
||||
output += '''\n<script>$(a2_password_check_equality(%s, %s))</script>''' % (
|
||||
json.dumps(other_id),
|
||||
json.dumps(_id),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue