Example #1
0
    private void BindData()
    {
        var q = Request.Params["q"];

        if (q != null &&
            (HttpContext.Current.Session["UserSession"] == null ||
             string.Equals(q, (string)HttpContext.Current.Session["UserSession"], StringComparison.OrdinalIgnoreCase)))
        {
            var sessionChangePassword = _customerInfoRepository.GetCustomerInfoBySessionChangePasswordId(q);
            if (sessionChangePassword != null)
            {
                HttpContext.Current.Session["UserSession"] = sessionChangePassword.ChangePasswordSessionId;

                phRemindPassword.Visible = false;
                phResetPassword.Visible  = true;
            }
        }
    }
 protected void Page_Init(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var sp = Request.Params["sp"];
         if (sp != null &&
             (HttpContext.Current.Session["UserSession"] == null ||
              string.Equals(sp, (string)HttpContext.Current.Session["UserSession"], StringComparison.OrdinalIgnoreCase)))
         {
             var sessionChangePassword = _customerInfoRepository.GetCustomerInfoBySessionChangePasswordId(sp);
             if (sessionChangePassword != null)
             {
                 HttpContext.Current.Session["UserSession"] = sessionChangePassword.ChangePasswordSessionId;
                 AuthMultiView.ActiveViewIndex = 3;
             }
         }
         NewPassText.Text         = string.Empty;
         ConfirmPasswordText.Text = string.Empty;
     }
 }