/** * Authenticate a user via the id. * * @param mixed $id * * @return bool */ public function byId($id) { if ($user = $this->october->findUserById($id)) { $this->october->setUser($user); return true; } return false; }