/// <summary> /// Loads the specified database. /// </summary> /// <param name="database">The database.</param> /// <returns></returns> public User Load(UserAccountsDatabase database) { if (!string.IsNullOrEmpty(Uuid)) { return(User.FirstOneWhere(u => u.Uuid == Uuid, database)); } if (!string.IsNullOrEmpty(Email)) { return(User.FirstOneWhere(u => u.Email == Email, database)); } return(User.FirstOneWhere(u => u.UserName == UserName, database)); }
public DaoAuthenticator(UserAccountsDatabase db) { UserAccountsDatabase = db; }
public UserManager(UserAccountsDatabase db) : this() { Database = db; }