using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Main
{
    public partial class Login1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("SignIn.aspx"); // redirect a nuova pagina login basata su ASP.NET Identity

            // vecchio metodo di login basato su asp.net membership login (non più usato) 
            //if (Request.Form["username"] != null && Request.Form["pass"] != null)
            //{
            //    if (Membership.ValidateUser(Request.Form["username"].ToString(), Request.Form["pass"].ToString()))
            //    {
            //        //Response.Redirect("Default.aspx");
            //        FormsAuthentication.RedirectFromLoginPage(Request.Form["username"].ToString(), true);
            //    }
            //    else
            //    {
            //        Response.StatusCode = 401;
            //        Response.End();
            //    }
            //}
        }
    }
}