KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: larmelboe on April 30, 2008, 01:30:27 pm

Title: Security / login
Post by: larmelboe on April 30, 2008, 01:30:27 pm
Is it possible to change the security / login ?
I want all pages to require login.

Title: Re: Security / login
Post by: ryan on April 30, 2008, 01:40:19 pm
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.