Skip to content

Commit

Permalink
test if cas activated and non parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jgutierr25 committed Jul 17, 2007
1 parent 85b70ad commit 28b9086
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion auth/cas/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -103,7 +108,7 @@ function loginpage_hook() {
$frm->username='erhar0062';
$frm->password="passwdCas";
return;
}
}

if ($this->config->multiauth) {
$authCAS = optional_param("authCAS");
Expand Down

0 comments on commit 28b9086

Please sign in to comment.