protected void LoginFace_LoggingIn(object sender, LoginCancelEventArgs e)
        {
            CDIProvider_MembershipService.MembershipService provider = new CDIProvider_MembershipService.MembershipService();
            string user = LoginFace.UserName;

            string autoriza = LoginFace.Password;

            bool valida = provider.ValidateUser(user, autoriza);
            if (valida)
            {
                Session["Autentica"] = true;
            }
            else
            {
                Session["Autentica"] = false;
            }
        }
Exemple #2
0
        protected void LoginFace_LoggingIn(object sender, LoginCancelEventArgs e)
        {
            CDIProvider_MembershipService.MembershipService provider = new CDIProvider_MembershipService.MembershipService();
            string user = LoginFace.UserName;

            string autoriza = LoginFace.Password;

            bool valida = provider.ValidateUser(user, autoriza);

            if (valida)
            {
                Session["Autentica"] = true;
            }
            else
            {
                Session["Autentica"] = false;
            }
        }