예제 #1
0
        protected void btnChangeCustomerPassword_OnClick(object sender, EventArgs e)
        {
            objCustomer    = new Customer();
            objCustomerBiz = new CustomerBiz();

            //objCustomer.CustomerUsername = ViewState["CustomerUsername"].ToString();
            objCustomer.CustomerUsername = txtGetuserNameForPasswordChange.Text.Trim();
            objCustomer.CustomerPassword = SHA512PasswordGenerator(txtUpdateCustomerPassword.Text.Trim());
            objCustomer.UpdatedBy        = Convert.ToInt16(Session["UserId"]);

            objCustomerBiz.ChangeCustomerPasswordByAdmin(objCustomer);
        }