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 UserInfo.db.findFirstRow(
session,
where: (t) => t.email.equals(email),
);
}