fix: исправлен показ ошибки валидации пароля под правильным полем
This commit is contained in:
parent
486cb53488
commit
fc7d359829
1 changed files with 5 additions and 1 deletions
|
|
@ -1088,8 +1088,12 @@ if (result.success) {
|
|||
if (authFooter) {
|
||||
authFooter.style.display = 'none';
|
||||
}
|
||||
} else {
|
||||
if (result.error && result.error.includes('Пароль')) {
|
||||
showError(passwordInput, result.error);
|
||||
} else {
|
||||
showError(emailInput, result.error || 'Ошибка регистрации');
|
||||
}
|
||||
submitBtn.disabled = false;
|
||||
submitBtn.classList.remove('loading');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue