I have a new website

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

enter image description here


2 Answers 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


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


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, 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 ? Oct 27, 2016 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 Oct 27, 2016 at 13:03
  • ok, so I have to remove my answer :) Oct 27, 2016 at 13:05
  • i used the first solution. work for me! thanks a lot! Oct 27, 2016 at 13:36
  • But still, that bug is not fixed in 2.3. Any idea? Oct 3, 2019 at 18:34

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

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 and acknowledge you have read our privacy policy.

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