public async Task <Auth> Login(string username, string password) { string query = "Auth:Username:" + username; var user = await _query.GetSingle(new Auth(), new Auth(), query); if (user == null) { return(null); } if (!VerifyPasswordHash(password, user.PasswordHash, user.PasswordSalt)) { return(null); } return(user); }