From aec9cb201d9f5bad06ffcf205d634dd35b7a1e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Tue, 13 Jan 2009 15:54:47 +0000 Subject: [PATCH] change state id on preprodwarning... git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1147 44740490-163a-0410-bde0-09ae8108e29a --- modules/preprodwarning/lib/Auth/Process/Warning.php | 2 +- modules/preprodwarning/www/showwarning.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/preprodwarning/lib/Auth/Process/Warning.php b/modules/preprodwarning/lib/Auth/Process/Warning.php index 9da819313..2c03d558c 100644 --- a/modules/preprodwarning/lib/Auth/Process/Warning.php +++ b/modules/preprodwarning/lib/Auth/Process/Warning.php @@ -22,7 +22,7 @@ class sspmod_preprodwarning_Auth_Process_Warning extends SimpleSAML_Auth_Process assert('is_array($state)'); /* Save state and redirect. */ - $id = SimpleSAML_Auth_State::saveState($state, 'consent:request'); + $id = SimpleSAML_Auth_State::saveState($state, 'warning:request'); $url = SimpleSAML_Module::getModuleURL('preprodwarning/showwarning.php'); SimpleSAML_Utilities::redirect($url, array('StateId' => $id)); } diff --git a/modules/preprodwarning/www/showwarning.php b/modules/preprodwarning/www/showwarning.php index e73be044a..d8db64560 100644 --- a/modules/preprodwarning/www/showwarning.php +++ b/modules/preprodwarning/www/showwarning.php @@ -15,7 +15,7 @@ if (!array_key_exists('StateId', $_REQUEST)) { } $id = $_REQUEST['StateId']; -$state = SimpleSAML_Auth_State::loadState($id, 'consent:request'); +$state = SimpleSAML_Auth_State::loadState($id, 'warning:request'); if (array_key_exists('yes', $_REQUEST)) { -- GitLab