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
<?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="MagentoCustomerBlockAccountResetpassword" type="VendorModuleBlockCustomerAccountResetpassword" />
</config>
Step 2). Vendor/Module/Block/Customer/Account/Resetpassword.php
<?php
namespace VendorModuleBlockCustomerAccount;
class Resetpassword extends MagentoCustomerBlockAccountResetpassword
{
public function __construct(
MagentoFrameworkViewElementTemplateContext $context,
MagentoCustomerModelSession $customerSession,
MagentoFrameworkObjectManagerInterface $objectManager,
array $data = []
) {
parent::__construct($context, $data);
$this->customerSession = $customerSession;
$this->_objectManager = $objectManager;
}
public function getResetPasswordLinkToken()
{
return $this->customerSession->getRpToken();
}
}

