From 70507a290966dce49a8b02c57dbd75c8843acc15 Mon Sep 17 00:00:00 2001 From: Mads Freek Petersen <freek@wayf.dk> Date: Fri, 22 Oct 2010 12:06:43 +0000 Subject: [PATCH] Forgot to remove test code. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2588 44740490-163a-0410-bde0-09ae8108e29a --- modules/casserver/www/login.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/casserver/www/login.php b/modules/casserver/www/login.php index c57183093..b8f25162c 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 +?> -- GitLab