misc: update password checking code for new form markup (#46150)

This commit is contained in:
Frédéric Péters 2020-08-28 08:04:45 +02:00
parent 5a9c4000df
commit 2033b742af
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ a2_password_check_equality = (function () {
$(function () {
function check_equality() {
setTimeout(function () {
var $help_text = $input2.parent().find('.helptext');
var $help_text = $input2.parent().find('.hint');
var password1 = $input1.val();
var password2 = $input2.val();
@ -36,7 +36,7 @@ a2_password_validate = (function () {
}
function get_validation($input) {
var password = $input.val();
var $help_text = $input.parent().find('.helptext');
var $help_text = $input.parent().find('.hint');
var $policyContainer = $help_text.find('.a2-password-policy-container');
$.ajax({
method: 'POST',