protected function _isLoginAction(Controller $controller)
    {
        $uri = $controller->request->getUri();
        $url = Router::normalize($uri->getPath());
        $loginAction = Router::normalize($this->_config['loginAction']);

        return $loginAction === $url;
    }
protected function _isLoginAction(Controller $controller)
    {
        $uri = $controller->request->getUri();
        $url = Router::normalize($uri->getPath());
        $loginAction = Router::normalize($this->_config['loginAction']);

        return $loginAction === $url;
    }
protected function _isLoginAction ( Controller $ controller ) { $ uri = $ controller -> request -> getUri ( ) ; $ url = Router :: normalize ( $ uri -> getPath ( ) ) ; $ loginAction = Router :: normalize ( $ this -> _config [ 'loginAction' ] ) ; return $ loginAction === $ url ; }
Normalizes config `loginAction` and checks if current request URL is same as login action.

@param \Cake\Controller\Controller $controller A reference to the controller object.
@return bool True if current action is login action else false.
Normalizes config loginAction and checks if current request URL is same as login action .