Add 2FA icon to admin panel

This commit is contained in:
Daniel García committed 2019-01-25 18:50:57 +01:00
1 parent a1dc47b826
commit 700e084101
4 files changed
+6 -5

No files matched your search

+1
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")
}