mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-05 14:50:11 +00:00
feat: Add YubiKey OTP support and management features
- Implemented YubiKey OTP settings management in useAccountSecurityActions hook. - Added API functions for retrieving, saving, and bootstrapping YubiKey OTP credentials. - Enhanced authentication flow to support multiple two-factor providers, including YubiKey. - Updated localization files to include new YubiKey-related strings in English, Spanish, Russian, and Chinese. - Introduced new styles for YubiKey management UI components. - Created utility functions for YubiKey OTP validation and credential handling.
This commit is contained in:
@@ -27,6 +27,35 @@ const zhTW: Record<string, string> = {
|
||||
"txt_passkey_provider_help": "使用兼容 FIDO2 的安全密鑰或生物識別驗證器。",
|
||||
"txt_yubico_otp_security_key": "Yubico OTP 安全密鑰",
|
||||
"txt_yubico_otp_security_key_help": "使用 YubiKey 4、5 或 NEO 裝置。",
|
||||
"txt_yubikey_setup_intro": "將 YubiKey 插入電腦的 USB 連接埠。在下方選擇第一個空的 YubiKey 輸入欄位,觸摸 YubiKey 按鈕,然後保存表單。",
|
||||
"txt_yubikey_plug_in": "將 YubiKey 插入電腦的 USB 連接埠。",
|
||||
"txt_yubikey_select_empty_field": "在下方選擇第一個空的 YubiKey 輸入欄位。",
|
||||
"txt_yubikey_touch_button": "觸摸 YubiKey 按鈕。",
|
||||
"txt_yubikey_save_form": "保存表單。",
|
||||
"txt_yubikey_x": "YubiKey {index}",
|
||||
"txt_nfc_support": "NFC 支援",
|
||||
"txt_yubikey_supports_nfc": "我的某個密鑰支援 NFC。",
|
||||
"txt_yubikey_supports_nfc_desc": "如果您的某個 YubiKey 支援 NFC,行動裝置偵測到 NFC 可用時會提示您。",
|
||||
"txt_disable_all_keys": "停用全部密鑰",
|
||||
"txt_yubikeys_updated": "YubiKey 已更新",
|
||||
"txt_yubikey_update_failed": "更新 YubiKey 失敗",
|
||||
"txt_disable_yubikey_failed": "停用 YubiKey 失敗",
|
||||
"txt_yubikey_disabled": "YubiKey 已停用",
|
||||
"txt_yubikey_enabled": "YubiKey 已啟用。",
|
||||
"txt_yubikey_config_required": "尚未配置 Yubico 驗證",
|
||||
"txt_yubikey_config_required_help": "請先輸入一次 YubiKey OTP。NodeWarden 會自動取得並保存實例級 Client ID 和 Secret key,成功後再進入 YubiKey 設定表單。",
|
||||
"txt_otp_from_yubikey": "來自 YubiKey 的 OTP",
|
||||
"txt_please_input_yubikey_otp": "請輸入 YubiKey OTP",
|
||||
"txt_yubikey_verify_failed": "YubiKey 驗證失敗",
|
||||
"txt_press_yubikey_to_authenticate": "按下 YubiKey 進行驗證。",
|
||||
"txt_yubikey_auto_configure": "自動取得並保存",
|
||||
"txt_yubikey_validation_credentials": "Yubico 驗證憑據",
|
||||
"txt_view": "查看",
|
||||
"txt_yubikey_config_updated": "Yubico 驗證憑據已更新",
|
||||
"txt_yubikey_config_update_failed": "更新 Yubico 驗證憑據失敗",
|
||||
"txt_yubikey_auto_config_failed": "取得 Yubico 驗證憑據失敗",
|
||||
"txt_yubikey_reconfigure_help": "輸入一個新的 OTP,可以重新自動取得並替換目前憑據。",
|
||||
"txt_yubikey_auto_configure_again": "重新自動取得",
|
||||
"txt_setting_coming_soon": "即將推出。",
|
||||
"txt_totp_manage_intro": "掃描二維碼或在驗證器 App 中輸入密鑰,然後輸入驗證碼。",
|
||||
"txt_two_step_recovery_code_warning": "當您無法訪問兩步登入提供程序時,您的一次性恢復代碼可用於停用兩步登入。請將其妥善保管。",
|
||||
@@ -860,6 +889,8 @@ const zhTW: Record<string, string> = {
|
||||
"txt_scope": "權限範圍",
|
||||
"txt_grant_type": "授權類型",
|
||||
"txt_refresh": "刷新",
|
||||
"txt_refresh_status": "刷新狀態",
|
||||
"txt_load_failed": "載入失敗",
|
||||
"txt_refresh_in_seconds_s": "{seconds} 秒後刷新",
|
||||
"txt_regenerate": "重新生成",
|
||||
"txt_registration_succeeded_please_sign_in": "註冊成功,請登錄",
|
||||
|
||||
Reference in New Issue
Block a user