/// Generates an appropriate response based on the login status that the authenticator returned.
Generates an appropriate response based on the login status that the authenticator returned.
Generates an appropriate response based on the login status that the authenticator returned .
pub fn redirect<T: TryInto<Uri<'static>>, S: TryInto<Uri<'static>>>(
        &self,
        success_url: T,
        failure_url: S,
    ) -> Redirect {
        match self {
            Login::Success(_) => self.success(success_url),
            Login::Failure(_) => self.failure(failure_url),
        }
    }
pub fn redirect < T : TryInto < Uri < ' static > > , S : TryInto < Uri < ' static > > > ( & self , success_url : T , failure_url : S , ) -> Redirect { match self { Login :: Success ( _ ) => self . success ( success_url ) , Login :: Failure ( _ ) => self . failure ( failure_url ) , } }
Generates an appropriate response based on the login status that the authenticator returned.
Generates an appropriate response based on the login status that the authenticator returned .
&self
success_url
T
failure_url
S