mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 10:16:47 +02:00
Adds Yubikey OTP Support
This commit is contained in:
1 parent
e66436625c
commit
9e0e4b13c5
3 files changed
+209
No files matched your search
@@ -209,6 +209,12 @@ fn twofactor_auth(
|
||||
two_factor::validate_u2f_login(user_uuid, twofactor_code, conn)?;
|
||||
}
|
||||
|
||||
Some(TwoFactorType::YubiKey) => {
|
||||
use api::core::two_factor;
|
||||
|
||||
two_factor::validate_yubikey_login(user_uuid, twofactor_code, conn)?;
|
||||
}
|
||||
|
||||
_ => err!("Invalid two factor provider"),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user