Permalink
Browse files

test if auth cas activated and no parameters

  • Loading branch information...
1 parent 017f1a6 commit df5b8b8895601d9dfa2d7de7e0a31bed22e575a1 jgutierr25 committed Jul 17, 2007
Showing with 6 additions and 1 deletion.
  1. +6 −1 auth/cas/auth.php
View
@@ -92,6 +92,11 @@ function loginpage_hook() {
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 @@ function loginpage_hook() {
$frm->username='erhar0062';
$frm->password="passwdCas";
return;
- }
+ }
if ($this->config->multiauth) {
$authCAS = optional_param("authCAS");

0 comments on commit df5b8b8

Please sign in to comment.