Fix safe ssoLoginURL params after activation + resolver error

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-03-12 17:07:46 +04:00
parent 792871bab6
commit 85ed5296e7
2 changed files with 3 additions and 2 deletions

View File

@@ -427,7 +427,8 @@ func (r *mutationResolver) ActivateAccount(ctx context.Context, input types.Acti
if identity.HashedPassword == nil {
token, err := r.iam.AuthService.GetResetPasswordToken(ctx, identity.EmailAddress)
if err != nil {
return nil, fmt.Errorf("cannot generate password create token: %w", err)
r.logger.ErrorCtx(ctx, "cannot generate password create token", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
createPasswordToken = &token