findUserByEmail static method
Finds a user by its email address. Returns null if no user is found.
Implementation
static Future<UserInfo?> findUserByEmail(
Session session, String email) async {
return await session.db.findSingleRow<UserInfo>(
where: UserInfo.t.email.equals(email),
);
}