0001-forms-do-not-call-password-validation-JS-too-early-5.patch
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 |
- |