function checkAuth() { if (CASUser::setup()) { //Allow it to be called multiple times, and return the auth info //Normally it will force a login if this isn't done return phpCAS::checkAuthentication(); } else { return CASUser::isAuthenticated(); } }