Exemplo n.º 1
0
        public ActionResult ChangePassword(FormCollection frm)
        {
            string currentPassword =Convert.ToString(frm["currentPassword"]);
            string newPassword1 = Convert.ToString(frm["newPasssword"]);
            string newPassword2 = Convert.ToString(frm["retyppePassword"]);

            if (newPassword1 == newPassword2)
            {

                LoginBLL bll = new LoginBLL();
                string mobileNo=Convert.ToString(Session["CustomerMobileNo"]);

                int ack = bll.UpdateCustomerPassword(mobileNo, newPassword1,currentPassword);

                if (ack == 1)
                {
                    ViewBag.ConfirmationMessage = "Your Password Has been Change Sucessfully";
                
                }
                if (ack == 2)
                {
                    ViewBag.ConfirmationMessage = "Current Password is Invalid!!";

                }
            }
            else
            {
                ViewBag.ConfirmationMessage = "New Password and Retype Password is not the same";
            }


            return View();
        }
Exemplo n.º 2
0
        public int CreateNewUser(CustomerPersonalInfo customerInfo)
        {

            LoginBLL bll = new LoginBLL();
           return(bll.insertNewUser(customerInfo));
            

        }
Exemplo n.º 3
0
 public ActionResult OTPConfirmation(string txtOTP)
 {
     if (Session["CustomerMobileNo"] != null)
     {
         LoginBLL bll = new LoginBLL();
         int confirmCode = bll.VerificationConfirmation(txtOTP, Session["CustomerMobileNo"].ToString());
         if (confirmCode == 1)
         {
             ViewBag.ConfirmationText = "Your Account has been Sucessfully Verfied.";
             
         }
         if (confirmCode == 2)
         {
             ViewBag.ConfirmationText = "Please Entered Correct OTP.";
         }
     }
     else
     {
         ViewBag.ConfirmationText = "You are not a Valid User.";
     }
     return View();
 }
Exemplo n.º 4
0
 public string Logincheck(string mob,string pass)
 {
     LoginBLL bll= new LoginBLL();
     return (bll.LoginCheck(mob,pass));
 
 }