src/Module/Authentication/LocalAuth/LocalAuth.php
protected function handleAccountPage(Request $httpRequest)
    {
        $user = $this->picoAuth->getUser();
        if (!$user->getAuthenticated()) {
            $this->session->addFlash("error", "Login to access this page.");
            $this->picoAuth->redirectToLogin();
            return;
        }

        // Page for password editing available only to local accounts
        if ($user->getAuthenticator() !== $this->getName()) {
            $this->picoAuth->redirectToPage("index");
            return;
        }

        $editAccount = $this->picoAuth->getContainer()->get('EditAccount');
        $editAccount->setConfig($this->config)
            ->handleAccountPage($httpRequest);
    }
protected function handleAccountPage(Request $httpRequest)
    {
        $user = $this->picoAuth->getUser();
        if (!$user->getAuthenticated()) {
            $this->session->addFlash("error", "Login to access this page.");
            $this->picoAuth->redirectToLogin();
            return;
        }

        // Page for password editing available only to local accounts
        if ($user->getAuthenticator() !== $this->getName()) {
            $this->picoAuth->redirectToPage("index");
            return;
        }

        $editAccount = $this->picoAuth->getContainer()->get('EditAccount');
        $editAccount->setConfig($this->config)
            ->handleAccountPage($httpRequest);
    }
protected function handleAccountPage ( Request $ httpRequest ) { $ user = $ this -> picoAuth -> getUser ( ) ; if ( ! $ user -> getAuthenticated ( ) ) { $ this -> session -> addFlash ( "error" , "Login to access this page." ) ; $ this -> picoAuth -> redirectToLogin ( ) ; return ; } // Page for password editing available only to local accounts if ( $ user -> getAuthenticator ( ) !== $ this -> getName ( ) ) { $ this -> picoAuth -> redirectToPage ( "index" ) ; return ; } $ editAccount = $ this -> picoAuth -> getContainer ( ) -> get ( 'EditAccount' ) ; $ editAccount -> setConfig ( $ this -> config ) -> handleAccountPage ( $ httpRequest ) ; }
On account page request

@param Request $httpRequest
@return void
On account page request