authenticate_tmc_mooc_fi_user

Function authenticate_tmc_mooc_fi_user 

Source
pub async fn authenticate_tmc_mooc_fi_user(
    conn: &mut PgConnection,
    client: &OAuthClient,
    email: String,
    password: String,
    tmc_client: &TmcClient,
) -> Result<Option<(User, SecretString)>>
Expand description

Authenticates the user with mooc.fi, returning the authenticated user and their oauth token.