mirror of
https://github.com/outline/outline.git
synced 2026-11-26 07:33:19 +03:00
chore: Record on users.signin event
This commit is contained in:
1 parent
3f6390ff18
commit
29329daf15
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user