Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Params = Session["Params"] as SessionParams;

            if (Params == null)
            {
                Params = new SessionParams();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Params = Session["Params"] as SessionParams;

            if (Params == null)
            {
                Params = new SessionParams();
            }

            Params.IsLoggedIn = false;
            Params.User       = new MSISUser();
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Params = Session["Params"] as SessionParams;

            if (Params == null)
            {
                Params = new SessionParams();
            }

            Events    = new List <Event>();
            DayEvents = new List <Event>();
            Events    = Event.GetEventList(credential);
        }
Beispiel #4
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            MSISUser User         = MSISUser.GetUser(creds, tboxUsername.Text);
            string   HashPassword = Crypto.CreateHash(tboxPassword.Text, User.Salt);

            if (User.Password == HashPassword)
            {
                SessionParams Params = Session["Params"] as SessionParams;

                if (Params == null)
                {
                    Params = new SessionParams();
                }

                Params.IsLoggedIn = true;
                Params.User       = User;
                Session["Params"] = Params;

                Response.Redirect("Home.aspx");
            }
        }