From 2dfa3eee36f69b52ca748ad1b8611c900b057507 Mon Sep 17 00:00:00 2001 From: Wanjin Noh Date: Fri, 20 Dec 2024 11:52:08 +0900 Subject: [PATCH] feat(authenticator): initialize task management template on sign-in Signed-off-by: Wanjin Noh --- apps/web/src/services/auth/authenticator/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/services/auth/authenticator/index.ts b/apps/web/src/services/auth/authenticator/index.ts index ed1239ec3e..22c2ff57ae 100644 --- a/apps/web/src/services/auth/authenticator/index.ts +++ b/apps/web/src/services/auth/authenticator/index.ts @@ -10,6 +10,8 @@ import { useErrorStore } from '@/store/error/error-store'; import { pinia } from '@/store/pinia'; import { useUserStore } from '@/store/user/user-store'; +import { initTaskManagementTemplate } from '@/lib/site-initializer/initTaskManagementTemplate'; + abstract class Authenticator { static async signIn(credentials: Record, authType: AuthType | 'SAML', verifyCode?: string): Promise { @@ -27,6 +29,7 @@ abstract class Authenticator { await userWorkspaceStore.load(); displayStore.setIsSignInFailed(false); errorStore.reset(); + await initTaskManagementTemplate(); } static async signOut(): Promise {