Correct the variable reference

This commit is contained in:
Alex Tselegidis 2022-12-21 18:58:46 +01:00
parent 4a9111c112
commit d84e19b39f

View file

@ -297,7 +297,7 @@ App.Pages.Secretaries = (function () {
if ($password.val().length < vars('min_password_length') && $password.val() !== '') { if ($password.val().length < vars('min_password_length') && $password.val() !== '') {
$('#password, #password-confirm').addClass('is-invalid'); $('#password, #password-confirm').addClass('is-invalid');
throw new Error( throw new Error(
'Password must be at least ' + BackendSecretaries.MIN_PASSWORD_LENGTH + ' characters long.' 'Password must be at least ' + vars('min_password_length')+ ' characters long.'
); );
} }