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

preprodwarning: Don't show warning in passive request.

Fixes issue 140

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1766 44740490-163a-0410-bde0-09ae8108e29a
parent cf82d4b3
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,11 @@ class sspmod_preprodwarning_Auth_Process_Warning extends SimpleSAML_Auth_Process
public function process(&$state) {
assert('is_array($state)');
if (isset($state['isPassive']) && $state['isPassive'] === TRUE) {
/* We have a passive request. Skip the warning. */
return;
}
/* Save state and redirect. */
$id = SimpleSAML_Auth_State::saveState($state, 'warning:request');
$url = SimpleSAML_Module::getModuleURL('preprodwarning/showwarning.php');
......
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