diff -r 5bb565ccfed7 auth/cas/auth.php --- a/auth/cas/auth.php Fri May 14 15:46:55 2010 +0200 +++ b/auth/cas/auth.php Fri May 14 16:46:32 2010 +0200 @@ -109,6 +109,12 @@ class auth_plugin_cas extends auth_plugi return; } + if ($this->config->multiauth) { + $authCAS = optional_param("authCAS"); + if ($authCAS=="NOCAS") + return; + } + // Connection to CAS server $this->connectCAS(); @@ -128,10 +134,6 @@ class auth_plugin_cas extends auth_plugi } if ($this->config->multiauth) { - $authCAS = optional_param("authCAS"); - if ($authCAS=="NOCAS") - return; - // choice authentication form for multi-authentication // test pgtIou parameter for proxy mode (https connection // in background from CAS server to the php server)