Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test if cas activated and non parameters

  • Loading branch information...
commit 28b9086750068f8b3a2a3439e696d58359b80cbc 1 parent 85b70ad
jgutierr25 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 auth/cas/auth.php
View
7 auth/cas/auth.php
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.