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:
Antoine Moreaux
2025-01-17 14:31:24 +01:00
committed by GitHub
parent f38a25412e
commit 679429447d

View File

@ -98,7 +98,6 @@ export class SignInUpService {
};
}
// with global invitation flow
if (params.workspace) {
const updatedUser = await this.signInUpOnExistingWorkspace({
workspace: params.workspace,
@ -246,7 +245,9 @@ export class SignInUpService {
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;
}