Ejemplo n.º 1
0
        protected void Logon_Click(object sender, EventArgs e)
        {
            var retObj = new LoginBLL().UserLogin(txtusername.Value, txtpassword.Value);
            new Index().PostLoginProcess(retObj, Response);
           // JObject postData = new JObject();
           // postData.Add("Pin", Utility.PinValue);
           // postData.Add("UserName", txtusername.Value.Trim());
           // postData.Add("Password", txtpassword.Value);

           //// var res = Utility.PostRequest<UserDetails>(Utility.GetServiceUrl("validateuserlogin"), postData.ToString(Formatting.None));
           // LoginViewData retObj = new LoginViewData();
           // new Index().PostLoginProcess(retObj, Response);
        }
Ejemplo n.º 2
0
        protected void Logon_Click(object sender, EventArgs e)
        {
            
            // var retObj = new LoginBLL().UserLogin(txtusername.Value, txtpassword.Value);

            var retObj = new LoginBLL().UserLogin(enc.EncryptData(txtusername.Value, enc.GetEncryptType()), enc.EncryptData(txtpassword.Value, enc.GetEncryptType()));
            new Index().PostLoginProcess(retObj, Response);
            
            if (retObj.Success == false)
            {
            //    lblerrormsg.Text = "Invalid Username or Password";
                lblerror.InnerText= "Invalid Username or Password";
            }
           
        }