Two factor authentication : TOTP #5
@ -30,7 +30,7 @@ impl TwoFactor {
|
|||||||
|
|
||||||
pub fn login_url(&self, redirect_uri: &LoginRedirect) -> String {
|
pub fn login_url(&self, redirect_uri: &LoginRedirect) -> String {
|
||||||
match self.kind {
|
match self.kind {
|
||||||
TwoFactorType::TOTP(_) => format!("/2fa_otp?id={}&redirect_uri={}",
|
TwoFactorType::TOTP(_) => format!("/2fa_otp?id={}&redirect={}",
|
||||||
self.id.0, redirect_uri.get_encoded())
|
self.id.0, redirect_uri.get_encoded())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user