Question

app/code/core/Mage/Customer/Model/Customer.php

I found some answers that i must change: $confirmation = $this->getConfirmation(); in $confirmation = $this->getPasswordConfirmation(); but I in my code I find well $confirmation = $this->getPasswordConfirmation();

I tried to do the opposite, to change $confirmation = $this->getPasswordConfirmation(); in $confirmation = $this->getConfirmation(); it works but there is a problem:

when I enter the informations and I submit, it redirects me to a blank page with this url: http://www.domaine.com/customer/account/createpost/ and when I refresh the page it redirects me to http : //www.domaine.com/customer/account/ with the dashboard and the created account.

anyone know why there is a blank page for the first url and how to fix this problem

Was it helpful?

Solution

Search for setConfirmation() and getConfirmation() in your extensions and replace with setPasswordConfirmation() and getPasswordConfirmation().

Or if they should stay compatible with older versions, use something like this:

$info = Mage::getVersionInfo();
$version = "{$info['major']}.{$info['minor']}.{$info['revision']}.{$info['patch']}";

if($version >= '1.9.1.0'){
$customer->setPasswordConfirmation($this->getRequest()->getPost('confirmation')); // just check the name of confirm password field in the registration form accordlingly add the name in the get Post
} else {
$customer->setConfirmation($this->getRequest()->getPost('confirmation')); // just check the name of confirm password field in the registration form accordlingly add the name in the get Post
}
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top