Ejemplo n.º 1
0
 /// <summary>
 /// Used for redeeming referrals only
 /// </summary>
 /// <param name="referral"></param>
 /// <param name="giftData"></param>
 public SubscriptionServiceRequest(HarperLINQ.Referral referral, Member giftData)
 {
     CreditCardData.PaymentType       = "F";
     CreditCardData.Price             = 0;
     CreditCardData.AmountPaid        = 0;
     CreditCardData.VerifoneRoutingId = string.Empty;
     RefreshCustomer = false;
     HarperLINQ.tbl_Customer referrer = new HarperLINQ.tbl_Customer(referral.memberid, false);
     SubscribingMember.MemberId = referrer.SfgId.ToString();
     GiftRecipient      = giftData;
     PublicationCode    = referral.pubcode;
     KeyCode            = referral.keycode;
     GiftFlag           = true;
     SubscriptionLength = referral.subscriptionlength;
 }
Ejemplo n.º 2
0
        public void EncryptId()
        {
            List <string> users = new List <string>();

            users.Add("tmrdoe");
            users.Add("discovery");
            users.Add("premier1");
            users.Add("standard");
            users.Add("premieronline");
            users.Add("jmoon");
            foreach (string user in users)
            {
                HarperLINQ.tbl_Customer cus = new HarperLINQ.tbl_Customer(user, true);
                System.Diagnostics.Debug.WriteLine(string.Format("USER: {0}, AUCTION URL: https://harpernet.andrewharper.com/HarperNET/Auctions/Default.aspx?MemberId={1}", cus.cusUserName, HarperCRYPTO.Cryptography.Encrypt256(cus.cusID.ToString())));
            }
            Assert.AreEqual(true, true);
        }
Ejemplo n.º 3
0
 public object[] UpdatePassword(string username, string enc_newpassword)
 {
     object[] response = new object[2];
     try
     {
         HarperLINQ.tbl_Customer customer = new HarperLINQ.tbl_Customer(username, true);
         customer.cusPassword = enc_newpassword;
         customer.Save();
         response = new object[] { true, null };
     }
     catch (Exception ex)
     {
         EventLogger.LogError("SecureServices.UpdatePassword",
             string.Format("Message: {0} \r\nStackTrace: {1}", ex.Message, ex.StackTrace));
         response = new object[] { false, ex.Message };
     }
     return response;
 }
Ejemplo n.º 4
0
 public object[] UpdatePassword(string username, string enc_newpassword)
 {
     object[] response = new object[2];
     try
     {
         HarperLINQ.tbl_Customer customer = new HarperLINQ.tbl_Customer(username, true);
         customer.cusPassword = enc_newpassword;
         customer.Save();
         response = new object[] { true, null };
     }
     catch (Exception ex)
     {
         EventLogger.LogError("SecureServices.UpdatePassword",
                              string.Format("Message: {0} \r\nStackTrace: {1}", ex.Message, ex.StackTrace));
         response = new object[] { false, ex.Message };
     }
     return(response);
 }
Ejemplo n.º 5
0
 public void EncryptId()
 {
     List<string> users = new List<string>();
     users.Add("tmrdoe");
     users.Add("discovery");
     users.Add("premier1");
     users.Add("standard");
     users.Add("premieronline");
     users.Add("jmoon");
     foreach (string user in users)
     {
         HarperLINQ.tbl_Customer cus = new HarperLINQ.tbl_Customer(user, true);
         System.Diagnostics.Debug.WriteLine(string.Format("USER: {0}, AUCTION URL: https://harpernet.andrewharper.com/HarperNET/Auctions/Default.aspx?MemberId={1}", cus.cusUserName, HarperCRYPTO.Cryptography.Encrypt256(cus.cusID.ToString())));
     }
     Assert.AreEqual(true, true);
 }