101 if (!$this->observerConfig->isPasswordChangeForced()) {
104 if (!$this->authSession->isLoggedIn()) {
108 'adminhtml_system_account_index',
109 'adminhtml_system_account_save',
110 'adminhtml_auth_logout',
118 if ($this->authSession->getPciAdminUserIsPasswordExpired()) {
119 if (!in_array(
$request->getFullActionName(), $actionList)) {
120 if ($this->authorization->isAllowed(
'Magento_Backend::myaccount')) {
121 $controller->getResponse()->setRedirect($this->url->getUrl(
'adminhtml/system_account/'));
122 $this->actionFlag->set(
'', \
Magento\Framework\
App\Action\Action::FLAG_NO_DISPATCH,
true);
123 $this->actionFlag->set(
'', \
Magento\Framework\
App\Action\Action::FLAG_NO_POST_DISPATCH,
true);
129 $this->authSession->clearStorage();
130 $this->session->clearStorage();
131 $this->messageManager->addErrorMessage(
132 __(
'Your password has expired; please contact your administrator.')
__construct(\Magento\Framework\AuthorizationInterface $authorization, \Magento\User\Model\Backend\Config\ObserverConfig $observerConfig, \Magento\Backend\Model\UrlInterface $url, \Magento\Backend\Model\Session $session, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\App\ActionFlag $actionFlag, \Magento\Framework\Message\ManagerInterface $messageManager)
execute(Observer $observer)