사용자 등록 시 비밀번호가 일치하는지 확인하세요. 1.9.2.0
-
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
}
제휴하지 않습니다 magento.stackexchange