Backend\Modules\Authentication\Actions\Index::execute PHP Method

execute() public method

Execute the action
public execute ( )
    public function execute()
    {
        // check if the user is really logged on
        if (BackendAuthentication::getUser()->isAuthenticated()) {
            $userEmail = BackendAuthentication::getUser()->getEmail();
            $this->getContainer()->get('logger')->info("User '{$userEmail}' is already authenticated.");
            $this->redirectToAllowedModuleAndAction();
        }
        parent::execute();
        $this->load();
        $this->validateForm();
        $this->parse();
        $this->display();
    }