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.
pub async fn get_by_email(
conn: &mut PgConnection,
email: &str,
) -> ModelResult<User>Looks up a user by email (case-insensitive) using the lower(email) index on user_details.