mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 11:29:42 +00:00
Check again email traces
This commit is contained in:
@@ -43,8 +43,8 @@ export const injectAuditLogInfo = fp(async (server: FastifyZodProvider) => {
|
||||
payload.actor = {
|
||||
type: ActorType.USER,
|
||||
metadata: {
|
||||
email: req.auth.user.email as string | undefined,
|
||||
username: req.auth.user.username as string | undefined,
|
||||
email: req.auth.user.email,
|
||||
username: req.auth.user.username,
|
||||
userId: req.permission.id
|
||||
}
|
||||
};
|
||||
|
||||
@@ -94,6 +94,7 @@ export const registerAdminRouter = async (server: FastifyZodProvider) => {
|
||||
event: PostHogEventTypes.AdminInit,
|
||||
distinctId: user.user.username ?? "",
|
||||
properties: {
|
||||
username: user.user.username,
|
||||
email: user.user.email ?? "",
|
||||
lastName: user.user.lastName || "",
|
||||
firstName: user.user.firstName || ""
|
||||
|
||||
@@ -139,6 +139,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
|
||||
event: PostHogEventTypes.UserSignedUp,
|
||||
distinctId: user.username ?? "",
|
||||
properties: {
|
||||
username: user.username,
|
||||
email: user.email ?? "",
|
||||
attributionSource: req.body.attributionSource
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user