mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 10:58:06 +00:00
simplified security key management interface.
This commit is contained in:
@@ -1150,7 +1150,7 @@
|
|||||||
"securityKeyLoadError": "Failed to load security keys",
|
"securityKeyLoadError": "Failed to load security keys",
|
||||||
"securityKeyLogin": "Sign in with security key",
|
"securityKeyLogin": "Sign in with security key",
|
||||||
"securityKeyAuthError": "Failed to authenticate with security key",
|
"securityKeyAuthError": "Failed to authenticate with security key",
|
||||||
"securityKeyRecommendation": "Consider registering another security key on a different device to ensure you don't get locked out of your account.",
|
"securityKeyRecommendation": "Tip: Register a backup security key on another device to ensure you always have access to your account.",
|
||||||
"registering": "Registering...",
|
"registering": "Registering...",
|
||||||
"securityKeyPrompt": "Please verify your identity using your security key. Make sure your security key is connected and ready.",
|
"securityKeyPrompt": "Please verify your identity using your security key. Make sure your security key is connected and ready.",
|
||||||
"securityKeyBrowserNotSupported": "Your browser doesn't support security keys. Please use a modern browser like Chrome, Firefox, or Safari.",
|
"securityKeyBrowserNotSupported": "Your browser doesn't support security keys. Please use a modern browser like Chrome, Firefox, or Safari.",
|
||||||
|
|||||||
@@ -267,19 +267,12 @@ export default function SecurityKeyForm({ open, setOpen }: SecurityKeyFormProps)
|
|||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<h3 className="text-sm font-medium text-muted-foreground">{t('securityKeyList')}</h3>
|
<h3 className="text-sm font-medium text-muted-foreground">{t('securityKeyList')}</h3>
|
||||||
<div className="flex items-center gap-2">
|
<Button
|
||||||
{securityKeys.length > 0 && (
|
className="h-8 w-8 p-0"
|
||||||
<Badge className="text-xs">
|
onClick={() => setShowRegisterDialog(true)}
|
||||||
{securityKeys.length} {securityKeys.length === 1 ? 'key' : 'keys'}
|
>
|
||||||
</Badge>
|
<Plus className="h-4 w-4" />
|
||||||
)}
|
</Button>
|
||||||
<Button
|
|
||||||
className="h-8 w-8 p-0"
|
|
||||||
onClick={() => setShowRegisterDialog(true)}
|
|
||||||
>
|
|
||||||
<Plus className="h-4 w-4" />
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{securityKeys.length > 0 ? (
|
{securityKeys.length > 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user