diff --git a/plugins/cas_auth_unl/actions/login.php b/plugins/cas_auth_unl/actions/login.php index 1a573b885e57c3d1de505869ffaabb8ef4054733..dbb1ecbfeba12682c99e2544dedb287bc8ebaa3d 100644 --- a/plugins/cas_auth_unl/actions/login.php +++ b/plugins/cas_auth_unl/actions/login.php @@ -34,9 +34,10 @@ if ($usecas == 'yes') { $casObject = new elggSimpleCas(); if (!$casObject->checkCas()) { + global $CONFIG; $ts = time(); $token = generate_action_token($ts); - SimpleCAS::setURL('http://ucommrasmussen.unl.edu/workspace/UNL_Elgg/elgg/action/login?usecas=yes&__elgg_ts='.$ts.'&__elgg_token='.$token); + SimpleCAS::setURL($CONFIG->url.'action/login?usecas=yes&__elgg_ts='.$ts.'&__elgg_token='.$token); $casObject->forceCas(); } else { $cas_user = $casObject->getUserCas();