1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-18 09:20:08 +00:00

Add 2FA icon to admin panel

This commit is contained in:
Daniel García 2019-01-25 18:50:57 +01:00
parent a1dc47b826
commit 700e084101
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
4 changed files with 6 additions and 5 deletions

View file

@ -100,6 +100,7 @@ impl TwoFactor {
pub fn find_by_user(user_uuid: &str, conn: &DbConn) -> Vec<Self> {
twofactor::table
.filter(twofactor::user_uuid.eq(user_uuid))
.filter(twofactor::type_.lt(1000)) // Filter implementation types
.load::<Self>(&**conn)
.expect("Error loading twofactor")
}