يرجى التأكد من تطابق كلمة المرور الخاصة بك أثناء تسجيل المستخدم 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/ مع لوحة القيادة والحساب الذي تم إنشاؤه.

أي شخص يعرف لماذا هناك صفحة فارغة لعنوان ورل الأول وكيفية إصلاح هذه المشكلة

هل كانت مفيدة؟

المحلول

البحث عن 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