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