• Welcome to KonaKart Community Forum. Please login or sign up.
 

Security / login

Started by larmelboe, April 30, 2008, 01:30:27 pm

Previous topic - Next topic

larmelboe

Is it possible to change the security / login ?
I want all pages to require login.


ryan

Yes, you can do this by editing the ActionClasses and the StrutsConfig file. Many of the Action classes already check for being logged in and forward you to the login page if you aren't:

           custId = this.loggedIn(kkAppEng, "CheckoutDelivery");

            // Check to see whether the user is logged in
            if (custId < 0)
            {
                return mapping.findForward(loginForward);
            }

You will have to implement this in all of the action classes and ensure that in StrutsConfig.xml you have defined the forwards.