Browse Source

Fill survey from email URL with code works with CAS enbled -ref #6875

baelmyhu 11 years ago
parent
commit
eecab13657
1 changed files with 6 additions and 6 deletions
  1. 6 6
      main/auth/cas/lib/CAS/client.php

+ 6 - 6
main/auth/cas/lib/CAS/client.php

@@ -883,16 +883,16 @@ class CASClient
 	function checkAuthentication()
 		{
 		phpCAS::traceBegin();
-		
 		if ( $this->isAuthenticated() ) {
-			phpCAS::trace('user is authenticated');
+            phpCAS::trace('user is authenticated');
 			$res = TRUE;
 		} else if (isset($_SESSION['phpCAS']['auth_checked'])) {
-			// the previous request has redirected the client to the CAS server with gateway=true
-			unset($_SESSION['phpCAS']['auth_checked']);
-			$res = FALSE;
+            // the previous request has redirected the client to the CAS server with gateway=true
+            // comment line bellow to
+//			unset($_SESSION['phpCAS']['auth_checked']);
+            $res = FALSE;
 		} else {
-			//        $_SESSION['phpCAS']['auth_checked'] = true;
+//        $_SESSION['phpCAS']['auth_checked'] = true;
 			//	    $this->redirectToCas(TRUE/* gateway */);	
 			//	    // never reached
 			//	    $res = FALSE;