From a1712725dc36ea0c8a35e77dde1322bf0771abbf Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 9 Oct 2018 17:48:49 +0530 Subject: [PATCH] sending email from support@interactiveanatomy.com in lab exercise getting loginid and password for site user --- 400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs | 6 +++--- 400-SOURCECODE/AIAHTML5.API/Models/Users.cs | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs b/400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs index a02ff79..728a7df 100644 --- a/400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs +++ b/400-SOURCECODE/AIAHTML5.API/Models/UserUtility.cs @@ -314,10 +314,10 @@ namespace AIAHTML5.API.Models if (UserUtility.CheckIfPropertyExists(userInfo, "accountNumber") && !string.IsNullOrEmpty(userInfo["accountNumber"].ToString())) emailMessage += "accountNumber: " + userInfo["accountNumber"].ToString() + "

"; - if (string.IsNullOrEmpty(sender)) + // if (string.IsNullOrEmpty(sender)) senderEmailId = Convert.ToString(ConfigurationManager.AppSettings["SenderEmailAddress"]); - else - senderEmailId = sender; + // else + // senderEmailId = sender; emailMessage += mailBody; diff --git a/400-SOURCECODE/AIAHTML5.API/Models/Users.cs b/400-SOURCECODE/AIAHTML5.API/Models/Users.cs index 652cf45..106800b 100644 --- a/400-SOURCECODE/AIAHTML5.API/Models/Users.cs +++ b/400-SOURCECODE/AIAHTML5.API/Models/Users.cs @@ -535,7 +535,10 @@ namespace AIAHTML5.API.Models intLicenseId = Convert.ToInt32(licRow["Id"]); - + User user = AIAHTML5.API.Models.DBModel.GetUserDetailsByEmailId(userInfo.EmailId); + userInfo.LoginId = user.LoginId; + userInfo.Password = user.Password; + DataTable dtblEditionForModesty = new DBModel().GetEditionsForModesty(userInfo.LicenseId, 0); //This table result set should return always have 0 or 1 record if modesty mode is present. foreach (DataRow drEditionForModesty in dtblEditionForModesty.Rows) -- libgit2 0.21.4