Added users 2FA statsu to userstable

This commit is contained in:
J. Newing
2025-07-08 10:12:20 -04:00
parent 2a6298e9eb
commit 0f3a5ce8ba
4 changed files with 41 additions and 6 deletions

View File

@@ -49,7 +49,8 @@ async function queryUsers(orgId: string, limit: number, offset: number) {
roleName: roles.name,
isOwner: userOrgs.isOwner,
idpName: idp.name,
idpId: users.idpId
idpId: users.idpId,
twoFactorEnabled: users.twoFactorEnabled,
})
.from(users)
.leftJoin(userOrgs, eq(users.userId, userOrgs.userId))