/**
* If the requested action is meant to be password verified, unset the session flag in order
* for it not to persist in other requests. In this way, the password verification process will be triggered
* again.
*
* @see Shopware_Controllers_Backend_Login::validatePasswordAction()
*/
public function postDispatch() { parent::
postDispatch();
$calledAction =
$this->
Request()->
getActionName();
$backendSession =
$this->container->
get('backendsession'
);
if ( Shopware()->
Plugins()->
Backend()->
Auth()->
shouldAuth() &&
$this->
isPasswordConfirmProtectedAction($calledAction) &&
$backendSession->
offsetGet('passwordVerified'
) ) { $backendSession->
offsetUnset('passwordVerified'
);
} }