fix(signup): send first_name and last_name instead of full_name
- Backend now expects first_name and last_name separately - Remove full_name field from registration payload
This commit is contained in:
parent
fe81ce54c7
commit
6f31fb06a5
1 changed files with 2 additions and 1 deletions
|
|
@ -209,7 +209,8 @@ export default function SignupRoute() {
|
|||
headers: { "Content-Type": "application/json", Accept: "application/json" },
|
||||
credentials: "include",
|
||||
body: JSON.stringify({
|
||||
full_name: `${firstName().trim()} ${lastName().trim()}`.trim(),
|
||||
first_name: firstName().trim(),
|
||||
last_name: lastName().trim(),
|
||||
email: email().trim().toLowerCase(),
|
||||
password: password(),
|
||||
phone: "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue