Browse Source

Update src/api/core/two_factor/webauthn.rs

Co-authored-by: Daniel <daniel.barabasa@gmail.com>
pull/5934/head
zUnixorn 2 weeks ago
committed by Mathijs van Veluw
parent
commit
5fbd71687a
  1. 2
      src/api/core/two_factor/webauthn.rs

2
src/api/core/two_factor/webauthn.rs

@ -28,7 +28,7 @@ use webauthn_rs_proto::{
RequestAuthenticationExtensions, UserVerificationPolicy,
};
pub static WEBAUTHN_2FA_CONFIG: Lazy<Arc<Webauthn>> = Lazy::new(|| {
pub static WEBAUTHN_2FA_CONFIG: LazyLock<Arc<Webauthn>> = LazyLock::new(|| {
let domain = CONFIG.domain();
let domain_origin = CONFIG.domain_origin();
let rp_id = Url::parse(&domain).map(|u| u.domain().map(str::to_owned)).ok().flatten().unwrap_or_default();

Loading…
Cancel
Save