findUserByEmail static method

Future<UserInfo?> findUserByEmail(
  1. Session session,
  2. String email
)

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),
  );
}