ユーザー登録時にパスワードが一致していることを確認してください 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