Skip to content

Commit

Permalink
Fix min length validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax committed Feb 3, 2025
1 parent 66a25c3 commit d72487e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/scripts/helpers/passwordValidations.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function validatePassword(passwordInput, passwordConfirmInput) {
} else if (!hasSpecialChar) {
passwordInput.setCustomValidity($t('global.text.hasSpecialCharacter'));
passwordInput.reportValidity();
} else if (!passwordInput.length >= minLength) {
} else if (passwordInput.length < minLength) {
passwordInput.setCustomValidity($t('global.text.hasMinLength'));
passwordInput.reportValidity();
} else if (passwordInput.value !== passwordConfirmInput.value) {
Expand Down

0 comments on commit d72487e

Please sign in to comment.