Projet

Général

Profil

0001-static-track-password-change-with-input-event-33571.patch

Benjamin Dauvergne, 30 mai 2019 15:05

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH] static: track password change with "input" event (#33571)

 src/authentic2/static/authentic2/js/password.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/authentic2/static/authentic2/js/password.js
19 19
            }
20 20
            var $input1 = $('#' + id1);
21 21
            var $input2 = $('#' + id2);
22
            $input1.on('change keydown keyup keypress paste', check_equality);
23
            $input2.on('change keydown keyup keypress paste', check_equality);
22
            $input1.on('input', check_equality);
23
            $input2.on('input', check_equality);
24 24
        });
25 25
    }
26 26
})();
......
71 71
    }
72 72
    return function (id) {
73 73
        var $input = $('#' + id);
74
        $input.on('keyup.a2-password-validate paste.a2-password-validate', validate_password);
74
        $input.on('input.a2-password-validate', validate_password);
75 75
    }
76 76
})();
77 77

  
78
-