From cb3bc0a2b11542c13352dc98a158f1d8bd1f427d Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 3 Aug 2011 05:42:43 +0000 Subject: [PATCH] core:UserPassOrgBase: fix a forgotten authstate retrieval in loginuserpassorg Thanks to Josselin Jacquard for finding and fixing this bug! git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2879 44740490-163a-0410-bde0-09ae8108e29a --- modules/core/www/loginuserpassorg.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/www/loginuserpassorg.php b/modules/core/www/loginuserpassorg.php index ab5c40633..f3713db4f 100644 --- a/modules/core/www/loginuserpassorg.php +++ b/modules/core/www/loginuserpassorg.php @@ -14,6 +14,10 @@ if (!array_key_exists('AuthState', $_REQUEST)) { throw new SimpleSAML_Error_BadRequest('Missing AuthState parameter.'); } $authStateId = $_REQUEST['AuthState']; + +/* Retrieve the authentication state. */ +$state = SimpleSAML_Auth_State::loadState($authStateId, sspmod_core_Auth_UserPassOrgBase::STAGEID); + $organizations = sspmod_core_Auth_UserPassOrgBase::listOrganizations($authStateId); if (array_key_exists('username', $_REQUEST)) { -- GitLab