Jump to content

[SOLVED] Prestashop, multiple servers


briq

Recommended Posts

I need to regenerate COOKIE_IV, COOKIE_KEY since I'm installing the same modified version of prestashop at several different servers. I've found how to generate them and password but I cant login so I guess the problem now is the secure_key (in table ps_employee).


Copied the code from /admin/password.php and it works:
<?php

   include(dirname(__FILE__).'/config/config.inc.php');

   $employee = new Employee();
   $employee->getByemail('[email protected]');

   $pwd = Tools::passwdGen();
   $employee->passwd = md5(pSQL(_COOKIE_KEY_.$pwd));
   $employee->last_passwd_gen = date('Y-m-d H:i:s', time());
   $result = $employee->update();

   echo $pwd;

?>

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...