Skip to content

Commit 22291a9

Browse files
committed
Use autoload and remove CAS graceful exception
1 parent 241ddf1 commit 22291a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CASAuthenticator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ private function initializeCas()
500500
{
501501
try {
502502

503-
require_once __DIR__ . '/vendor/apereo/phpcas/CAS.php';
503+
require_once __DIR__ . '/vendor/autoload.php';
504504

505505
$cas_host = $this->getSystemSetting("cas-host");
506506
$cas_context = $this->getSystemSetting("cas-context");
@@ -526,7 +526,7 @@ private function initializeCas()
526526
\phpCAS::setCasServerCACert($cas_server_ca_cert_path);
527527

528528
// Don't exit, let me handle instead
529-
\CAS_GracefullTerminationException::throwInsteadOfExiting();
529+
//\CAS_GracefullTerminationException::throwInsteadOfExiting();
530530
return true;
531531
} catch ( \Throwable $e ) {
532532
$this->log('CAS Authenticator: Error initializing CAS', [ 'error' => $e->getMessage() ]);

0 commit comments

Comments
 (0)