mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25: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
@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";
|
||||
import { toast } from "sonner";
|
||||
import { ShieldOff } from "lucide-react";
|
||||
import { Button } from "@/components/button";
|
||||
import { pluginKey } from "@/lib/plugin-i18n";
|
||||
import {
|
||||
getUserSecondFactors,
|
||||
resetUserSecondFactors,
|
||||
@@ -70,7 +71,12 @@ export function AdminSecondFactorsSection({
|
||||
>
|
||||
<span>
|
||||
{factor.labelKey
|
||||
? t(factor.labelKey, { defaultValue: factor.factorId })
|
||||
? t(
|
||||
factor.pluginId === "core"
|
||||
? factor.labelKey
|
||||
: pluginKey(factor.pluginId, factor.labelKey),
|
||||
{ defaultValue: factor.factorId },
|
||||
)
|
||||
: factor.factorId}
|
||||
</span>
|
||||
{!factor.available && (
|
||||
|
||||
Reference in new issue
Block a user