mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-01 15:34:48 +00:00
Add 2FA icon to admin panel
This commit is contained in:
parent
a1dc47b826
commit
700e084101
4 changed files with 6 additions and 5 deletions
|
@ -151,10 +151,7 @@ fn twofactor_auth(
|
|||
device: &mut Device,
|
||||
conn: &DbConn,
|
||||
) -> ApiResult<Option<String>> {
|
||||
let twofactors_raw = TwoFactor::find_by_user(user_uuid, conn);
|
||||
// Remove u2f challenge twofactors (impl detail)
|
||||
let twofactors: Vec<_> = twofactors_raw.iter().filter(|tf| tf.type_ < 1000).collect();
|
||||
|
||||
let twofactors = TwoFactor::find_by_user(user_uuid, conn);
|
||||
let providers: Vec<_> = twofactors.iter().map(|tf| tf.type_).collect();
|
||||
|
||||
// No twofactor token if twofactor is disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue