This commit is contained in:
Professional 2025-05-25 02:17:12 +07:00
parent 89ac33f844
commit 404091563a

View File

@ -211,9 +211,13 @@ const handleRegister = async () => {
const userData = {
name: name.value,
email: email.value,
birthdate: birthdate.value,
dateOfBirth: birthdate.value, // Изменено с birthdate на dateOfBirth для соответствия бэкенду
password: password.value
};
// Для отладки
console.log('Отправка данных регистрации:', { ...userData, password: '****' });
await register(userData);
} catch (error) {
errorMessage.value = error.message || 'Произошла неизвестная ошибка при регистрации.';