mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-17 11:29:21 +00:00
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
This commit is contained in:
parent
86de0ca17b
commit
a1dc47b826
19 changed files with 457 additions and 394 deletions
|
|
@ -234,7 +234,7 @@ fn _json_err_twofactor(providers: &[i32], user_uuid: &str, conn: &DbConn) -> Api
|
|||
match TwoFactorType::from_i32(*provider) {
|
||||
Some(TwoFactorType::Authenticator) => { /* Nothing to do for TOTP */ }
|
||||
|
||||
Some(TwoFactorType::U2f) if CONFIG.domain_set => {
|
||||
Some(TwoFactorType::U2f) if CONFIG.domain_set() => {
|
||||
let request = two_factor::generate_u2f_login(user_uuid, conn)?;
|
||||
let mut challenge_list = Vec::new();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue