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 {