login

Function login 

Source
pub async fn login(
    request: HttpRequest,
    pool: Data<PgPool>,
    jwt_client: Data<JwtClient>,
) -> ApplicationResponse
Expand description

Get(/login) attempts to log a user in, and if successful returns a JWT token