1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-15 23:42:31 +00:00

Use saved token for email 2fa codes

This commit is contained in:
vpl 2019-08-04 16:55:43 +02:00
commit 6d460b44b0
11 changed files with 148 additions and 139 deletions

View file

@ -3,8 +3,8 @@ use diesel::prelude::*;
use serde_json::Value;
use crate::api::EmptyResult;
use crate::db::DbConn;
use crate::db::schema::twofactor;
use crate::db::DbConn;
use crate::error::MapResult;
use super::User;
@ -36,7 +36,6 @@ pub enum TwoFactorType {
U2fRegisterChallenge = 1000,
U2fLoginChallenge = 1001,
EmailVerificationChallenge = 1002,
}
/// Local methods