diff --git a/modules/casserver/www/login.php b/modules/casserver/www/login.php index c57183093e1263e2638af00e5c8ee1ea20648540..b8f25162c2bfb6f3d08021c5b2588d042d411f7b 100644 --- a/modules/casserver/www/login.php +++ b/modules/casserver/www/login.php @@ -29,7 +29,7 @@ $auth = $casconfig->getValue('auth', 'saml2'); if (!in_array($auth, array('saml2', 'shib13'))) throw new Exception('CAS Service configured to use [auth] = ' . $auth . ' only [saml2,shib13] is legal.'); -/* + if (!$session->isValid($auth)) { $url = SimpleSAML_Utilities::selfURL(); $hints = array( @@ -41,9 +41,6 @@ if (!$session->isValid($auth)) { } $attributes = $session->getAttributes(); -*/ - -$attributes = array('mail' => array('freek@ruc.dk'), 'anton' => array('banton')); $path = $casconfig->resolvePath($casconfig->getValue('ticketcache', '/tmp')); @@ -60,4 +57,4 @@ SimpleSAML_Utilities::redirect( ) ); -?> \ No newline at end of file +?>