From f5e2b4726da1dcac921743891cd69d253537b694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 18 Nov 2021 14:13:06 +0100 Subject: [PATCH] webauthn: correctly set origin when updating MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with current proxmox-tfa this became a hard error, since origin and rp are not both Strings anymore.. Signed-off-by: Fabian Grünbichler --- src/api2/config/access/tfa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/config/access/tfa.rs b/src/api2/config/access/tfa.rs index 2fad7e2f..e84016e3 100644 --- a/src/api2/config/access/tfa.rs +++ b/src/api2/config/access/tfa.rs @@ -79,7 +79,7 @@ pub fn update_webauthn_config( )?; } if let Some(ref rp) = webauthn.rp { wa.rp = rp.clone(); } - if let Some(ref origin) = webauthn.rp { wa.origin = origin.clone(); } + if let Some(ref origin) = webauthn.origin { wa.origin = origin.clone(); } if let Some(ref id) = webauthn.id { wa.id = id.clone(); } } else { let rp = webauthn.rp.unwrap();