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