While going through the logs, I noticed:
Message: Notice: Undefined offset: 0 in vendor/magento/module-customer/Model/ForgotPasswordToken/GetCustomerByToken.php on line 87
To get the solution, I followed the below steps.
Step 1). Override the block of reset password – Vendor/Module/etc/di.xml
1 2 3 4 |
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Customer\Block\Account\Resetpassword" type="Vendor\Module\Block\Customer\Account\Resetpassword" /> </config> |
Step 2). Vendor/Module/Block/Customer/Account/Resetpassword.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<?php namespace Vendor\Module\Block\Customer\Account; class Resetpassword extends \Magento\Customer\Block\Account\Resetpassword { public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Framework\ObjectManagerInterface $objectManager, array $data = [] ) { parent::__construct($context, $data); $this->customerSession = $customerSession; $this->_objectManager = $objectManager; } public function getResetPasswordLinkToken() { return $this->customerSession->getRpToken(); } } |
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-62845c083abd2821733819/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...