From ee6973eb6a85af9fedfe6ecd378ff937d93531c6 Mon Sep 17 00:00:00 2001 From: Web-serfer Date: Tue, 5 May 2026 23:17:49 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/auth/sign-up.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/auth/sign-up.astro b/frontend/src/pages/auth/sign-up.astro index 3771e46..c8459f6 100644 --- a/frontend/src/pages/auth/sign-up.astro +++ b/frontend/src/pages/auth/sign-up.astro @@ -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 => {