/** * Performs the real authentication work. Overrides and calls parent * implementation. Trys to authenticate using token saved in cookie. * @param mixed parameter to be passed to OnAuthenticate event */ public function onAuthenticate($param) { parent::onAuthenticate($param); $currentUser = $this->Application->User; if (!$currentUser || $currentUser->IsGuest) { $this->authenticateFromCookie($param); } }