Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fetch user list when toggle 2fa required (#5501)

boojack21c19f4b93c8
diff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vue
index 2bc4049eb4..665bbb8131 100644
--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue
+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue
@@ -165,7 +165,7 @@ const handleRequire2FAToggle = async (on: boolean) => {
if (on) {
// Only allow to enable this when all users have enabled 2FA.
- const userList = userStore.userList
+ const userList = (await userStore.fetchUserList())
.filter(
(user) => user.userType === UserType.USER && user.state === State.ACTIVE
)