aboutsummaryrefslogtreecommitdiff
path: root/src/api/identity.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2019-01-25 18:50:57 +0100
committerDaniel García <[email protected]>2019-01-25 18:50:57 +0100
commit700e084101fe789433b48f17e555121f39c79bb8 (patch)
tree99bb0a8515db7c1aecb8950b727d47c05f92e012 /src/api/identity.rs
parenta1dc47b82646d3b2ba8092c5cca7af2d04c68735 (diff)
downloadvaultwarden-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.rs5
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