- {required && (
+ {forceOpenTwoFactorSetupModal && (
Your organization requires you to set up 2FA.
@@ -37,10 +27,9 @@ export function TwoFactorSetupModal({
Use an authenticator app like Google Authenticator or 1Password to scan the QR code below.
{
- toggleTwoFactorSetupModal(false)
- if (onSuccess) {
- onSuccess()
- }
+ closeTwoFactorSetupModal()
+ userLogic.actions.loadUser()
+ membersLogic.actions.loadAllMembers()
}}
/>
diff --git a/frontend/src/scenes/authentication/twoFactorLogic.ts b/frontend/src/scenes/authentication/twoFactorLogic.ts
index 43d31a7f4d189..37c331b809868 100644
--- a/frontend/src/scenes/authentication/twoFactorLogic.ts
+++ b/frontend/src/scenes/authentication/twoFactorLogic.ts
@@ -4,7 +4,9 @@ import { forms } from 'kea-forms'
import { loaders } from 'kea-loaders'
import api from 'lib/api'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { membersLogic } from 'scenes/organization/membersLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
+import { userLogic } from 'scenes/userLogic'
import type { twoFactorLogicType } from './twoFactorLogicType'
@@ -26,7 +28,8 @@ export const twoFactorLogic = kea