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