From 5810c770c7515efe80eae99cc9b869aa6022330b Mon Sep 17 00:00:00 2001 From: Baptiste Date: Thu, 27 Oct 2022 19:52:08 +0200 Subject: [PATCH] lol --- admin/index.php | 3 ++- photos.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index a722e1e..998bab7 100644 --- a/admin/index.php +++ b/admin/index.php @@ -9,7 +9,8 @@ phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true); // For production use set the CA certificate that is the issuer of the cert // on the CAS server and uncomment the line below -// phpCAS::setCasServerCACert($cas_server_ca_cert_path); +//phpCAS::setCasServerCACert($cas_server_ca_cert_path); +phpCAS::setNoCasServerValidation(); // force CAS authentication phpCAS::forceAuthentication(); diff --git a/photos.php b/photos.php index 108231d..97a5fb5 100644 --- a/photos.php +++ b/photos.php @@ -251,7 +251,12 @@ function generatePath($path) //CAS require_once("phpCAS-1.3.6/CAS.php"); + phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true); + +phpCAS::setNoCasServerValidation(); +// phpCAS::setCasServerCACert($cas_server_ca_cert_path); + phpCAS::forceAuthentication(); if (isset($_REQUEST['logout'])) { phpCAS::logout();