controllers/BaseController.php
protected function getPassword(Request $request)
    {
        $url = $request->getQueryParam('url');

        $password = $request->getParam('password');
        if (isset($password)) {
            $this->sessionSegment->setFlash($url, $password);
        } else {
            $password = $this->sessionSegment->getFlash($url);
        }

        return $password;
    }
protected function getPassword(Request $request)
    {
        $url = $request->getQueryParam('url');

        $password = $request->getParam('password');
        if (isset($password)) {
            $this->sessionSegment->setFlash($url, $password);
        } else {
            $password = $this->sessionSegment->getFlash($url);
        }

        return $password;
    }
protected function getPassword ( Request $ request ) { $ url = $ request -> getQueryParam ( 'url' ) ; $ password = $ request -> getParam ( 'password' ) ; if ( isset ( $ password ) ) { $ this -> sessionSegment -> setFlash ( $ url , $ password ) ; } else { $ password = $ this -> sessionSegment -> getFlash ( $ url ) ; } return $ password ; }
Get the password entered for the current video.

@param Request $request PSR-7 request

@return string Password
Get the password entered for the current video .