pub async fn login(
request: HttpRequest,
pool: Data<PgPool>,
jwt_client: Data<JwtClient>,
) -> ApplicationResponseExpand description
Get(/login) attempts to log a user in, and if successful returns a JWT token
pub async fn login(
request: HttpRequest,
pool: Data<PgPool>,
jwt_client: Data<JwtClient>,
) -> ApplicationResponseGet(/login) attempts to log a user in, and if successful returns a JWT token