Server IP : 103.6.199.200 / Your IP : 18.219.209.144 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/kmsjbcom/kmsjb.com/wwwroot/ |
Upload File : |
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using YL; using YL.WebAppLib; public partial class ForgotPassword : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { WebUtilities.TieButton(this.Page, uxUserNameText, uxSubmitButton); } protected void uxSubmitButton_Click(object sender, EventArgs e) { try { UrlPath urlPath = new UrlPath(Request.Url.AbsoluteUri); string currentURL = UrlPath.StorefrontUrl + urlPath.ExtractFirstApplicationSubfolder() + "/"; //UserUtilities.SendResetPasswordConfirmationEmail(uxUserNameText.Text, currentURL); //uxMessage.DisplayMessage("Please check your email for the password retrieve confirmation link."); string hashUsername = UserUtilities.EncryptUserName(uxUserNameText.Text); UserUtilities.ResetPasswordAndSendEmail(hashUsername); uxMessage.DisplayMessage("Please check your email for the password retrieved."); } catch (Exception ex) { uxMessage.DisplayError("Error: " + ex.Message); } } }