Skip to content
Snippets Groups Projects
Commit cb3bc0a2 authored by Olav Morken's avatar Olav Morken
Browse files

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
parent e8012d8a
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,10 @@ if (!array_key_exists('AuthState', $_REQUEST)) { ...@@ -14,6 +14,10 @@ if (!array_key_exists('AuthState', $_REQUEST)) {
throw new SimpleSAML_Error_BadRequest('Missing AuthState parameter.'); throw new SimpleSAML_Error_BadRequest('Missing AuthState parameter.');
} }
$authStateId = $_REQUEST['AuthState']; $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); $organizations = sspmod_core_Auth_UserPassOrgBase::listOrganizations($authStateId);
if (array_key_exists('username', $_REQUEST)) { if (array_key_exists('username', $_REQUEST)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment