Generate & return webauthn registration challenge
This commit is contained in:
@ -34,7 +34,7 @@ impl TotpKey {
|
||||
|
||||
/// Get QrCode URL for user
|
||||
///
|
||||
/// Based on https://github.com/google/google-authenticator/wiki/Key-Uri-Format
|
||||
/// Based on <https://github.com/google/google-authenticator/wiki/Key-Uri-Format>
|
||||
pub fn url_for_user(&self, u: &User, conf: &AppConfig) -> String {
|
||||
format!(
|
||||
"otpauth://totp/{}:{}?secret={}&issuer={}&algorithm=SHA1&digits={}&period={}",
|
||||
|
Reference in New Issue
Block a user