Skip to main content

get_by_email

Function get_by_email 

Source
pub async fn get_by_email(
    conn: &mut PgConnection,
    email: &str,
) -> ModelResult<User>
Expand description

Looks up a user by email (case-insensitive) using the lower(email) index on user_details.