From 28bbd721ea06bfc95963a42133a4fef802bfc593 Mon Sep 17 00:00:00 2001 From: 0x0fbc <10455804+0x0fbc@users.noreply.github.com> Date: Sat, 20 Jul 2024 15:20:53 -0400 Subject: [PATCH] Don't handle OrganizationDuo --- src/api/identity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/identity.rs b/src/api/identity.rs index aaec7498..a0d2af89 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -520,7 +520,7 @@ async fn twofactor_auth( } Some(TwoFactorType::Webauthn) => webauthn::validate_webauthn_login(&user.uuid, twofactor_code, conn).await?, Some(TwoFactorType::YubiKey) => yubikey::validate_yubikey_login(twofactor_code, &selected_data?).await?, - Some(TwoFactorType::Duo | TwoFactorType::OrganizationDuo) => { + Some(TwoFactorType::Duo) => { match CONFIG.duo_use_iframe() { true => { // Legacy iframe prompt flow @@ -605,7 +605,7 @@ async fn _json_err_twofactor( result["TwoFactorProviders2"][provider.to_string()] = request.0; } - Some(TwoFactorType::Duo | TwoFactorType::OrganizationDuo) => { + Some(TwoFactorType::Duo) => { let email = match User::find_by_uuid(user_uuid, conn).await { Some(u) => u.email, None => err!("User does not exist"),