Commit a1712725dc36ea0c8a35e77dde1322bf0771abbf

Authored by Nikita Kulshreshtha
1 parent e030dd5f

sending email from support@interactiveanatomy.com in lab exercise

getting loginid and password for site user
400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs
@@ -314,10 +314,10 @@ namespace AIAHTML5.API.Models @@ -314,10 +314,10 @@ namespace AIAHTML5.API.Models
314 if (UserUtility.CheckIfPropertyExists(userInfo, "accountNumber") && !string.IsNullOrEmpty(userInfo["accountNumber"].ToString())) 314 if (UserUtility.CheckIfPropertyExists(userInfo, "accountNumber") && !string.IsNullOrEmpty(userInfo["accountNumber"].ToString()))
315 emailMessage += "accountNumber: <b>" + userInfo["accountNumber"].ToString() + "</b><br/><br/>"; 315 emailMessage += "accountNumber: <b>" + userInfo["accountNumber"].ToString() + "</b><br/><br/>";
316 316
317 - if (string.IsNullOrEmpty(sender)) 317 + // if (string.IsNullOrEmpty(sender))
318 senderEmailId = Convert.ToString(ConfigurationManager.AppSettings["SenderEmailAddress"]); 318 senderEmailId = Convert.ToString(ConfigurationManager.AppSettings["SenderEmailAddress"]);
319 - else  
320 - senderEmailId = sender; 319 + // else
  320 + // senderEmailId = sender;
321 321
322 emailMessage += mailBody; 322 emailMessage += mailBody;
323 323
400-SOURCECODE/AIAHTML5.API/Models/Users.cs
@@ -535,7 +535,10 @@ namespace AIAHTML5.API.Models @@ -535,7 +535,10 @@ namespace AIAHTML5.API.Models
535 535
536 intLicenseId = Convert.ToInt32(licRow["Id"]); 536 intLicenseId = Convert.ToInt32(licRow["Id"]);
537 537
538 - 538 + User user = AIAHTML5.API.Models.DBModel.GetUserDetailsByEmailId(userInfo.EmailId);
  539 + userInfo.LoginId = user.LoginId;
  540 + userInfo.Password = user.Password;
  541 +
539 DataTable dtblEditionForModesty = new DBModel().GetEditionsForModesty(userInfo.LicenseId, 0); 542 DataTable dtblEditionForModesty = new DBModel().GetEditionsForModesty(userInfo.LicenseId, 0);
540 //This table result set should return always have 0 or 1 record if modesty mode is present. 543 //This table result set should return always have 0 or 1 record if modesty mode is present.
541 foreach (DataRow drEditionForModesty in dtblEditionForModesty.Rows) 544 foreach (DataRow drEditionForModesty in dtblEditionForModesty.Rows)