vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit fdcc32beda607a6ed8568b32898c37cd24fa4e5e
parent bf20355c5efb72bd98571276e6f27ce40c11204b
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sun, 14 Apr 2019 22:05:05 +0200

Validate Duo credentials when custom

Diffstat:
Msrc/api/core/two_factor.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/two_factor.rs b/src/api/core/two_factor.rs @@ -854,7 +854,7 @@ fn activate_duo(data: JsonUpcase<EnableDuoData>, headers: Headers, conn: DbConn) let (data, data_str) = if check_duo_fields_custom(&data) { let data_req: DuoData = data.into(); let data_str = serde_json::to_string(&data_req)?; - //duo_api_request("GET", "/auth/v2/check", "", &data_req).map_res("Failed to validate Duo credentials")?; + duo_api_request("GET", "/auth/v2/check", "", &data_req).map_res("Failed to validate Duo credentials")?; (data_req.obscure(), data_str) } else { (DuoData::secret(), String::new())