Skip to content

Commit

Permalink
fix: enrich user creation webhook when user joins via authentication (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anujk14 authored Jun 4, 2024
1 parent 90649e6 commit 9c159db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/authenticate/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,12 @@ func (s Service) getOrCreateUser(ctx context.Context, email, title string) (user
return user.User{}, err
}
_ = audit.GetAuditor(ctx, schema.PlatformOrgID.String()).
Log(audit.UserCreatedEvent, audit.UserTarget(newUser.ID))
LogWithAttrs(audit.UserCreatedEvent, audit.UserTarget(newUser.ID), map[string]string{
"email": newUser.Email,
"name": newUser.Name,
"title": newUser.Title,
"avatar": newUser.Avatar,
})
return newUser, nil
}

Expand Down

0 comments on commit 9c159db

Please sign in to comment.