This commit is contained in:
Pierre HUBERT 2022-04-19 19:33:16 +02:00
parent 806a085c97
commit feb6db09b9

View File

@ -30,7 +30,7 @@ impl TwoFactor {
pub fn login_url(&self, redirect_uri: &LoginRedirect) -> String {
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())
}
}