From: jgutierr25 Date: Tue, 17 Jul 2007 12:08:26 +0000 (+0000) Subject: test if auth cas activated and no parameters X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=df5b8b8895601d9dfa2d7de7e0a31bed22e575a1;p=moodle.git test if auth cas activated and no parameters --- 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");