Новые правки

This commit is contained in:
Web-serfer 2026-05-05 23:17:49 +05:00
parent 56babba2e9
commit ee6973eb6a

View file

@ -884,7 +884,9 @@ import { SITE_URL } from '@constants';
} }
function validatePassword(value: string): boolean { function validatePassword(value: string): boolean {
return value.length >= 8 && value.length <= 12; const hasLetter = /[A-Za-zА-Яа-я]/.test(value);
const hasDigit = /\d/.test(value);
return value.length >= 8 && value.length <= 20 && hasLetter && hasDigit;
} }
document.querySelectorAll('.toggle-password').forEach(button => { document.querySelectorAll('.toggle-password').forEach(button => {