From 29329daf1544eae040d7180680d513e593b39e01 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 27 Nov 2024 17:59:46 -0500 Subject: [PATCH] chore: Record on users.signin event --- server/utils/authentication.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/utils/authentication.ts b/server/utils/authentication.ts index 59961d6f04..10ac921949 100644 --- a/server/utils/authentication.ts +++ b/server/utils/authentication.ts @@ -7,7 +7,7 @@ import { getCookieDomain } from "@shared/utils/domains"; import env from "@server/env"; import Logger from "@server/logging/Logger"; import { Event, Collection, View } from "@server/models"; -import { AuthenticationResult } from "@server/types"; +import { AuthenticationResult, AuthenticationType } from "@server/types"; /** * Parse and return the details from the "sessions" cookie in the request, if @@ -68,6 +68,7 @@ export async function signIn( actorId: user.id, userId: user.id, teamId: team.id, + authType: AuthenticationType.APP, data: { name: user.name, service,