Cake\Controller\Component\AuthComponent::_isLoginAction PHP Метод

_isLoginAction() защищенный Метод

Normalizes config loginAction and checks if current request URL is same as login action.
protected _isLoginAction ( Controller $controller ) : boolean
$controller Cake\Controller\Controller A reference to the controller object.
Результат boolean True if current action is login action else false.
    protected function _isLoginAction(Controller $controller)
    {
        $url = '';
        if (isset($controller->request->url)) {
            $url = $controller->request->url;
        }
        $url = Router::normalize($url);
        $loginAction = Router::normalize($this->_config['loginAction']);
        return $loginAction === $url;
    }