diff options
author | Daniel García <[email protected]> | 2019-01-25 18:50:57 +0100 |
---|---|---|
committer | Daniel García <[email protected]> | 2019-01-25 18:50:57 +0100 |
commit | 700e084101fe789433b48f17e555121f39c79bb8 (patch) | |
tree | 99bb0a8515db7c1aecb8950b727d47c05f92e012 /src/api/identity.rs | |
parent | a1dc47b82646d3b2ba8092c5cca7af2d04c68735 (diff) | |
download | vaultwarden-700e084101fe789433b48f17e555121f39c79bb8.tar.gz vaultwarden-700e084101fe789433b48f17e555121f39c79bb8.zip |
Add 2FA icon to admin panel
Diffstat (limited to 'src/api/identity.rs')
-rw-r--r-- | src/api/identity.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/api/identity.rs b/src/api/identity.rs index b6092a31..8638796b 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -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 |