Пожалуйста, убедитесь, что ваш пароль совпадает при регистрации пользователя 1.9.2.0.

magento.stackexchange https://magento.stackexchange.com//questions/93308

  •  19-12-2019
  •  | 
  •  

Вопрос

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

Я нашел несколько ответов, которые я должен изменить: $confirmation = $this->getConfirmation(); в $confirmation = $this->getPasswordConfirmation(); но я в своем коде нахожу хорошо $confirmation = $this->getPasswordConfirmation();

Я пытался сделать наоборот, изменить $confirmation = $this->getPasswordConfirmation(); в $confirmation = $this->getConfirmation(); работает, но есть проблема:

когда я ввожу информацию и отправляю ее, меня перенаправляет на пустую страницу с этим url: http://www.domaine.com/customer/account/createpost/ и когда я обновляю страницу, меня перенаправляет на http : //www.domaine.com/customer/account/ с панелью управления и созданной учетной записью.

кто-нибудь знает, почему для первого URL-адреса отображается пустая страница и как решить эту проблему

Это было полезно?

Решение

Искать setConfirmation() и getConfirmation() в ваших расширениях и замените на setPasswordConfirmation() и getPasswordConfirmation().

Или, если они должны оставаться совместимыми со старыми версиями, используйте что-то вроде этого:

$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
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top