diff --git a/modules/casserver/www/serviceValidate.php b/modules/casserver/www/serviceValidate.php index 86ca87f2b74a10f4f3943e61329f9cc876ec4f6f..5de8a45b66413153d3c5acfa3155a1600580a60c 100644 --- a/modules/casserver/www/serviceValidate.php +++ b/modules/casserver/www/serviceValidate.php @@ -66,7 +66,7 @@ try { function returnResponse($value, $function, $usrname = '', $attributes = array(), $xtraxml = "") { if ($value === 'YES') { - if ($function == 'serviceValidate') { + if ($function != 'validate') { $attributesxml = ""; foreach ($attributes as $attributename => $attributelist) { $attr = htmlspecialchars($attributename); @@ -86,7 +86,7 @@ function returnResponse($value, $function, $usrname = '', $attributes = array(), echo 'yes' . "\n" . $usrname; } } else { - if ($function == 'serviceValidate') { + if ($function != 'validate') { echo '<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas"> <cas:authenticationFailure code=""> </cas:authenticationFailure>