diff --git a/src/data/user.rs b/src/data/user.rs index 5c03871..d3196b5 100644 --- a/src/data/user.rs +++ b/src/data/user.rs @@ -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()) } }