20 $passwordResetToken = (string)$this->
getRequest()->getQuery(
'token');
21 $userId = (int)$this->
getRequest()->getQuery(
'id');
23 $this->_validateResetPasswordLinkToken($userId, $passwordResetToken);
25 $this->_view->loadLayout();
27 $content = $this->_view->getLayout()->getBlock(
'content');
29 $content->setData(
'user_id', $userId)->setData(
'reset_password_link_token', $passwordResetToken);
32 $this->_view->renderLayout();
33 }
catch (\Exception $exception) {
34 $this->messageManager->addError(
__(
'Your password reset link has expired.'));
35 $this->
_redirect(
'adminhtml/auth/forgotpassword', [
'_nosecret' =>
true]);
_redirect($path, $arguments=[])