Jump to content

how to create a password page?


Recommended Posts

create a page to check authentication by checking $cookie object
add following code at beginning of your page

if (!$cookie->isLogged()) Tools::reditect("authentication.php?back=yournewpage");




if you are using 1.4x, it is better to follow new pages structure, use Page Controller.
in that case, you only need to set following in your new page controller

here is the example of history

   public function __construct()
   {
       $this->auth = true;
       $this->php_self = 'history.php';
       $this->authRedirection = 'history.php';
....

Link to comment
Share on other sites

×
×
  • Create New...