From 9b5a7394b8374e38d9dc03207cceec4f185a91d4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 20 Dec 2023 18:59:39 -0400 Subject: [PATCH] Add debugging for missing invite --- server/commands/userProvisioner.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/commands/userProvisioner.ts b/server/commands/userProvisioner.ts index cf8f3f47b..f0101be89 100644 --- a/server/commands/userProvisioner.ts +++ b/server/commands/userProvisioner.ts @@ -4,6 +4,7 @@ import { InvalidAuthenticationError, InviteRequiredError, } from "@server/errors"; +import Logger from "@server/logging/Logger"; import { Event, Team, User, UserAuthentication } from "@server/models"; import { sequelize } from "@server/storage/database"; @@ -211,6 +212,10 @@ export default async function userProvisioner({ // If the team settings are set to require invites, and there's no existing user record, // throw an error and fail user creation. if (team?.inviteRequired) { + Logger.info("authentication", "Sign in without invitation", { + teamId: team.id, + email, + }); throw InviteRequiredError(); }