add document marking page
This commit is contained in:
@@ -214,6 +214,7 @@ export async function registration(
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
/* referralLink: referralCode, */
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
}
|
||||
}),
|
||||
@@ -223,6 +224,16 @@ export async function registration(
|
||||
}
|
||||
});
|
||||
|
||||
console.log({
|
||||
fullName: fullName,
|
||||
email,
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
/* referralLink: referralCode, */
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
})
|
||||
|
||||
if (response.ok) {
|
||||
let parsed = await response.json() as {
|
||||
message_desc: string,
|
||||
@@ -230,6 +241,8 @@ export async function registration(
|
||||
message_code: number
|
||||
};
|
||||
|
||||
console.log(parsed);
|
||||
|
||||
if (parsed.message_code === 0) {
|
||||
console.log(`registration - ${accountType}`);
|
||||
console.log({
|
||||
@@ -238,6 +251,7 @@ export async function registration(
|
||||
phone: phone,
|
||||
password,
|
||||
accountType,
|
||||
referralLink: 'fds324',
|
||||
...(accountType === 'b2b' && { companyName: companyName })
|
||||
});
|
||||
await createSession(parsed.message_body.token, email as string);
|
||||
|
||||
Reference in New Issue
Block a user