mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 15:41:44 +08:00
feat: 添加 TOTP 2FA 功能
This commit is contained in:
@@ -27,6 +27,7 @@ desktop = [
|
||||
"dep:anyhow",
|
||||
"dep:argon2",
|
||||
"dep:rand",
|
||||
"dep:totp-rs",
|
||||
"dep:uuid",
|
||||
"dep:base64",
|
||||
"dep:nix",
|
||||
@@ -100,6 +101,7 @@ anyhow = { version = "1", optional = true }
|
||||
# Authentication
|
||||
argon2 = { version = "0.5", optional = true }
|
||||
rand = { version = "0.10", optional = true }
|
||||
totp-rs = { version = "5.7", features = ["gen_secret", "otpauth", "zeroize"], optional = true }
|
||||
|
||||
# Utilities
|
||||
uuid = { version = "1", features = ["v4", "serde"], optional = true }
|
||||
|
||||
Reference in New Issue
Block a user