Exemplo n.º 1
0
        protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
            User newUser = DatabaseHandler.AuthenticateUsernamePassword(Login1.UserName, Login1.Password);

            if (newUser != null) //If the new user is not null then the login did not fail.
            {
                Help.AddUserSession(Session, newUser);

                FillLogout();

                CheckPermissions(newUser);
            }
            else
            {
                //Error occured logging in..
            }
        }
 protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
 {
     DatabaseHandler.AuthenticateUsernamePassword(Login1.UserName, Login1.Password);
 }