Actually, I'm wrong.. I forgot that the password is md5 hashed. So its not possible to do unless you store the password as plaintext from the start. Which is really really really insecure.
1. You'd need to add a new column in the customer database table called "password_text"
2. Then during account create, save the unencrypted password to the new password_text field
3. Then if customers forget, you can edit the catalog/controller/account/forgotten.php file to
change:
to:
Then change:
to
1. You'd need to add a new column in the customer database table called "password_text"
2. Then during account create, save the unencrypted password to the new password_text field
3. Then if customers forget, you can edit the catalog/controller/account/forgotten.php file to
change:
Code: Select all
$password = substr(md5(rand()), 0, 7);
Code: Select all
$password = $this->db->query("SELECT password_text FROM `customer` WHERE email = '" . $this->request->post['email'] . "'");
Code: Select all
$this->model_account_customer->editPassword($this->request->post['email'], $password);
Code: Select all
//$this->model_account_customer->editPassword($this->request->post['email'], $password);
Who is online
Users browsing this forum: No registered users and 139 guests