Daniel García
3 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
5 deletions
-
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(), |
|
|
|
}) |
|
|
|