getRequest()->getQuery('token'); $userId = (int)$this->getRequest()->getQuery('id'); try { $this->_validateResetPasswordLinkToken($userId, $passwordResetToken); $this->_view->loadLayout(); $content = $this->_view->getLayout()->getBlock('content'); if ($content) { $content->setData('user_id', $userId)->setData('reset_password_link_token', $passwordResetToken); } $this->_view->renderLayout(); } catch (\Exception $exception) { $this->messageManager->addError(__('Your password reset link has expired.')); $this->_redirect('adminhtml/auth/forgotpassword', ['_nosecret' => true]); return; } } }