Add webauthn #8

Merged
pierre merged 10 commits from webauthn into master 2022-04-23 18:25:16 +00:00
Showing only changes of commit 0f2fe87b5d - Show all commits

View File

@ -62,7 +62,7 @@ impl WebAuthManager {
.expect("Failed to parse configuration origin!"), .expect("Failed to parse configuration origin!"),
relying_party_id: conf.domain_name().split_once(':') relying_party_id: conf.domain_name().split_once(':')
.map(|s| s.0) .map(|s| s.0)
.unwrap_or(conf.domain_name()) .unwrap_or_else(|| conf.domain_name())
.to_string(), .to_string(),
}), }),
crypto_wrapper: CryptoWrapper::new_random(), crypto_wrapper: CryptoWrapper::new_random(),