diff --git a/frontend/src/pages/auth/sign-up.astro b/frontend/src/pages/auth/sign-up.astro index cf44a5a..ff3d358 100644 --- a/frontend/src/pages/auth/sign-up.astro +++ b/frontend/src/pages/auth/sign-up.astro @@ -1089,7 +1089,11 @@ if (result.success) { authFooter.style.display = 'none'; } } else { - showError(emailInput, result.error || 'Ошибка регистрации'); + if (result.error && result.error.includes('Пароль')) { + showError(passwordInput, result.error); + } else { + showError(emailInput, result.error || 'Ошибка регистрации'); + } submitBtn.disabled = false; submitBtn.classList.remove('loading'); }