modified: main_dc/yalarba/easySite/easySite/app/pages/auth/register.vue
fullNmae = first+last
This commit is contained in:
@@ -70,13 +70,12 @@ const loading = ref(false)
|
||||
|
||||
// Форма регистрации — теперь с отдельными полями имени и фамилии
|
||||
const form = ref({
|
||||
full_name: '',
|
||||
first_name: '',
|
||||
last_name: '',
|
||||
email: '',
|
||||
password: '',
|
||||
passwordConfirm: '',
|
||||
phone: '',
|
||||
city: ''
|
||||
})
|
||||
|
||||
const handleSubmit = async () => {
|
||||
@@ -104,7 +103,9 @@ const handleSubmit = async () => {
|
||||
body: {
|
||||
email: form.value.email,
|
||||
password: form.value.password,
|
||||
full_name // = first_name + last_name
|
||||
full_name,
|
||||
first_name: form.value.first_name,
|
||||
last_name: form.value.last_name
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user