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.
- Get user from data base Build SQL for SELECT