Новые правки
This commit is contained in:
parent
56babba2e9
commit
ee6973eb6a
1 changed files with 3 additions and 1 deletions
|
|
@ -884,7 +884,9 @@ import { SITE_URL } from '@constants';
|
|||
}
|
||||
|
||||
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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue