1

I have a new website

In the email, when I register a new user, it's missing the password:

enter image description here

Why?

2

It is a bug affecting 1.9. You can find details about it here: https://stackoverflow.com/a/31262786/1038727

Magento 1.9 version has problem to send password in emails. and not set var values under {{htmlescape var=$customer.password}}

There is one solution to send password in email

Open the core file or extend as you like AccountController.php, find the function createPostAction() on line 285 or find

$customer->cleanPasswordsValidationData();

just comment it like this

// $customer->cleanPasswordsValidationData();

also do it in other places as on line 809, 954

now it sends the password to customer new account email.

Other method

open or extend the custom model file

magento\app\code\core\Mage\Customer\Model\Customer.php

find the function

public function cleanPasswordsValidationData()
{
    $this->setData('password', null);
    $this->setData('password_confirmation', null);
    return $this;
} 

comment out // $this->setData('password', null);

public function cleanPasswordsValidationData()
{
    // $this->setData('password', null);
    $this->setData('password_confirmation', null);
    return $this;
}

NB: It was fixed in 1.9.3.0, see the releases notes: http://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html#ce19-1930 :

The new customer e-mail now includes the customer's password.

Another SE link talking about it as per Vaibhav suggestion: password in email confirmation of registration

  • Is this bug or Magento remove this for security ? – Vaibhav Ahalpara Oct 27 '16 at 13:02
  • @vaibhavahalpara it is a bug. A lot of people assumed it was removed for security reasons but this is not true. It was fixed in 1.9.3.0 – Raphael at Digital Pianism Oct 27 '16 at 13:03
  • ok, so I have to remove my answer :) – Vaibhav Ahalpara Oct 27 '16 at 13:05
  • i used the first solution. work for me! thanks a lot! – Alessandro Gnola Oct 27 '16 at 13:36
0

I think (but not checked) it's fixed by CE 1.9.3.0

In http://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html#ce19-1930security-pwd , we can read :

The new customer e-mail now includes the customer's password

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.