Assurez-vous que votre mot de passe pendant l'enregistrement d'Utilisateur 1.9.2.0
-
19-12-2019 - |
Question
app/code/core/Mage/Customer/Model/Customer.php
J'ai trouvé quelques réponses que je doit changer: $confirmation = $this->getConfirmation();
dans $confirmation = $this->getPasswordConfirmation();
mais j'ai dans mon code, je l'ai trouver bien $confirmation = $this->getPasswordConfirmation();
J'ai essayé de faire le contraire, pour changer $confirmation = $this->getPasswordConfirmation();
dans $confirmation = $this->getConfirmation();
il fonctionne, mais il y a un problème:
quand j'ai entrer les informations et je me soumets, il me redirige vers une page blanche avec ce url: http://www.domaine.com/customer/account/createpost/
et lorsque j'actualise la page, il me redirige vers http : //www.domaine.com/customer/account/
avec le tableau de bord et le compte créé.
quelqu'un sait pourquoi il y a une page blanche pour la première url et comment résoudre ce problème
La solution
Recherche pour setConfirmation()
et getConfirmation()
dans vos extensions et de les remplacer par setPasswordConfirmation()
et getPasswordConfirmation()
.
Ou s'ils doivent rester compatible avec les anciennes versions, utiliser quelque chose comme ceci:
$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
}