mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:25:58 +00:00
register
This commit is contained in:
@@ -77,8 +77,8 @@ export default function RegisterForm({
|
||||
}
|
||||
|
||||
function submitAndLink(value: Inputs): Promise<boolean | void> {
|
||||
return submitRegister(value).then((resp: any) => {
|
||||
const params: any = { userId: resp.userId };
|
||||
return submitRegister(value).then((session) => {
|
||||
const params: any = { userId: session.userId };
|
||||
|
||||
if (organization) {
|
||||
params.organization = organization;
|
||||
@@ -88,6 +88,10 @@ export default function RegisterForm({
|
||||
params.authRequestId = authRequestId;
|
||||
}
|
||||
|
||||
if (session && session.sessionId) {
|
||||
params.sessionId = session.sessionId;
|
||||
}
|
||||
|
||||
return router.push(`/verify?` + new URLSearchParams(params));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ export default function SetPasswordForm({
|
||||
value.password
|
||||
).then((session) => {
|
||||
setLoading(false);
|
||||
const params: any = { userID: humanResponse.userId };
|
||||
const params: any = { userId: humanResponse.userId };
|
||||
|
||||
if (authRequestId) {
|
||||
params.authRequestId = authRequestId;
|
||||
|
||||
Reference in New Issue
Block a user