fix(auth): update onboarding activation for specific users (#9702)
Adjust onboarding activation to trigger only for new users with pictures. This prevents unnecessary activation steps for other user types, streamlining the flow.
This commit is contained in:
@ -98,7 +98,6 @@ export class SignInUpService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// with global invitation flow
|
|
||||||
if (params.workspace) {
|
if (params.workspace) {
|
||||||
const updatedUser = await this.signInUpOnExistingWorkspace({
|
const updatedUser = await this.signInUpOnExistingWorkspace({
|
||||||
workspace: params.workspace,
|
workspace: params.workspace,
|
||||||
@ -246,7 +245,9 @@ export class SignInUpService {
|
|||||||
|
|
||||||
const user = Object.assign(currentUser, updatedUser);
|
const user = Object.assign(currentUser, updatedUser);
|
||||||
|
|
||||||
await this.activateOnboardingForUser(user, params.workspace);
|
if (params.userData.type === 'newUserWithPicture') {
|
||||||
|
await this.activateOnboardingForUser(user, params.workspace);
|
||||||
|
}
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user