From df5b8b8895601d9dfa2d7de7e0a31bed22e575a1 Mon Sep 17 00:00:00 2001 From: jgutierr25 Date: Tue, 17 Jul 2007 12:08:26 +0000 Subject: [PATCH] test if auth cas activated and no parameters --- auth/cas/auth.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/auth/cas/auth.php b/auth/cas/auth.php index 495faa2438..b61d369ba3 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -92,6 +92,11 @@ class auth_plugin_cas extends auth_plugin_base { if (!empty($username)) { return; } + + // Test si cas activĂ© et paramĂȘtres non remplis + if (empty($this->config->hostname)) { + return; + } // Connection to CAS server $this->connectCAS(); @@ -103,7 +108,7 @@ class auth_plugin_cas extends auth_plugin_base { $frm->username='erhar0062'; $frm->password="passwdCas"; return; - } + } if ($this->config->multiauth) { $authCAS = optional_param("authCAS"); -- 2.39.5