commit 9f393cfd9da40081475fa793c8f051519c5f656a parent 450c4d4d97da91898abc6a32bb748d275d36b6ac Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com> Date: Wed, 27 Oct 2021 23:00:26 +0200 Formatting Diffstat:
M | src/api/core/two_factor/webauthn.rs | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs @@ -32,11 +32,7 @@ impl WebauthnConfig { let domain = CONFIG.domain(); let domain_origin = CONFIG.domain_origin(); Webauthn::new(Self { - rpid: Url::parse(&domain) - .map(|u| u.domain().map(str::to_owned)) - .ok() - .flatten() - .unwrap_or_default(), + rpid: Url::parse(&domain).map(|u| u.domain().map(str::to_owned)).ok().flatten().unwrap_or_default(), url: domain, origin: Url::parse(&domain_origin).unwrap(), })