Function validate_user

Source
pub async fn validate_user(
    credentials: &Credentials,
    pool: &Pool<Postgres>,
) -> UserValidatedReturn
Expand description

validate_user

Given the user credentials provided will check if the credentials are valid and in the database.

  1. Get user from data base Build SQL for SELECT