asjoli Posted February 28, 2011 Share Posted February 28, 2011 I have some problems with some costumers that doesn't receive password-emails when they ask for them. I made a mistake when I moved the shop to a new host and forgot the COOKIE_KEY so now most old passwords are not valid (and no, I'm not going to change the cookie key now as it will give me even more problems...).My customers try to click on "forgot password" and enter their emailaddress and wait. Nothing arrives.I have tried my own "test account" and that works fine.I have asked my costumers to check their spam emails, but it's not there either.So my question is:Can I generate a password for the costumer on my own in some way? And how is that done? 1 Link to comment Share on other sites More sharing options...
Burhan BVK Posted February 28, 2011 Share Posted February 28, 2011 Go to phpmyadmin, locate the ps_customer table. Edit the account you want. In the password field first enter the cookie key follower by the password. In the function list select MD5 and save. Link to comment Share on other sites More sharing options...
shokinro Posted February 28, 2011 Share Posted February 28, 2011 you can reset customer password at your back office admin page.log in to you back office adminselect Customers tabFind the customer you want to change password and click "edit" icon at right endInput new password at customer detailed information page and click save 1 Link to comment Share on other sites More sharing options...
mecollectibles Posted March 3, 2011 Share Posted March 3, 2011 Hello Shokinro,There is no place for the password in the section you stated! Link to comment Share on other sites More sharing options...
shokinro Posted March 4, 2011 Share Posted March 4, 2011 see attached Link to comment Share on other sites More sharing options...
shokinro Posted March 4, 2011 Share Posted March 4, 2011 Here is a simple sample, the function generate password function genRandomString($length=8) { $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string =""; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters) -1 )]; } return $string; } the code to encrypt with your store cookie key $tmppass = genRandomString(); $passwd = md5(_COOKIE_KEY_ . $tmppass); 1 Link to comment Share on other sites More sharing options...
mecollectibles Posted November 7, 2011 Share Posted November 7, 2011 Hello Kinro, Would you please allow me know where to put these codes? Which lines? Also is there a way to use the shop to send emails to customers who have not placed any order yet but have signed as a customer? Thanks, Link to comment Share on other sites More sharing options...
shokinro Posted November 8, 2011 Share Posted November 8, 2011 Would you please allow me know where to put these codes? Which lines?Also is there a way to use the shop to send emails to customers who have not placed any order yet but have signed as a customer? Actually, there is a better way to do that. You don't have to put those code any where. PrestaShop Tools class has standard function is ready for you to use. All you need to do is call this function Tools::passwdGen(); 1 Link to comment Share on other sites More sharing options...
mecollectibles Posted November 8, 2011 Share Posted November 8, 2011 I use version 1.3.2.3 that this function is not available. So, I need to know where to put the codes. I have other questions too but in the pages of the forum I cannot find where the link is. Would you please help? Thanks in advance. Link to comment Share on other sites More sharing options...
shokinro Posted November 8, 2011 Share Posted November 8, 2011 I use version 1.3.2.3 that this function is not available. So, I need to know where to put the codes. The below function is also available in 1.3.2.3 Tools::passwdGen(); I have other questions too but in the pages of the forum I cannot find where the link is. Would you please help? Sorry, I am not sure what page you are referring to. Link to comment Share on other sites More sharing options...
Recommended Posts