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:
parent
efd8d9f528
commit
6d460b44b0
11 changed files with 148 additions and 139 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue