Bitte stellen Sie sicher, dass Ihr Passwort bei der Benutzerregistrierung übereinstimmt 1.9.2.0
-
19-12-2019 - |
Frage
app/code/core/Mage/Customer/Model/Customer.php
Ich habe einige Antworten gefunden, die ich ändern muss: $confirmation = $this->getConfirmation();
in $confirmation = $this->getPasswordConfirmation();
aber ich finde es in meinem Code gut $confirmation = $this->getPasswordConfirmation();
Ich habe versucht, das Gegenteil zu tun, mich zu ändern $confirmation = $this->getPasswordConfirmation();
in $confirmation = $this->getConfirmation();
es funktioniert, aber es gibt ein Problem:
wenn ich die Informationen eingebe und übermittle, werde ich auf eine leere Seite mit folgendem Inhalt weitergeleitet url: http://www.domaine.com/customer/account/createpost/
und wenn ich die Seite aktualisiere, werde ich weitergeleitet http : //www.domaine.com/customer/account/
mit dem Dashboard und dem erstellten Konto.
weiß jemand, warum es eine leere Seite für die erste URL gibt und wie man dieses Problem behebt
Lösung
Suche nach setConfirmation()
und getConfirmation()
in Ihren Erweiterungen und ersetzen durch setPasswordConfirmation()
und getPasswordConfirmation()
.
Oder wenn sie mit älteren Versionen kompatibel bleiben sollen, verwenden Sie so etwas:
$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
}