mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: move totp and passkeys into plugins (C1)
This commit is contained in:
1 parent
f4f26a9b8b
commit
5c18435105
235 files changed
+22545
-5610
No files matched your search
@@ -306,7 +306,7 @@ export function AdminSettingsPanel({
|
||||
isOidc: user.is_oidc,
|
||||
passwordHash: user.password_hash,
|
||||
dataUnlocked: user.data_unlocked,
|
||||
totpEnabled: user.totp_enabled,
|
||||
secondFactorEnabled: user.second_factor_enabled,
|
||||
})),
|
||||
);
|
||||
setUserTotal(total ?? u.length);
|
||||
@@ -989,10 +989,10 @@ export function AdminSettingsPanel({
|
||||
setUsers((prev) => prev.filter((u) => u.id !== manageUser.id));
|
||||
setManageUser(null);
|
||||
}}
|
||||
onTotpDisabled={() => {
|
||||
onSecondFactorsReset={() => {
|
||||
setUsers((prev) =>
|
||||
prev.map((u) =>
|
||||
u.id === manageUser.id ? { ...u, totpEnabled: false } : u,
|
||||
u.id === manageUser.id ? { ...u, secondFactorEnabled: false } : u,
|
||||
),
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user