Patch to SAML login. It wont pass for pandora session handlers

This commit is contained in:
fermin831 2018-11-23 11:37:05 +01:00
parent cfeaea57ff
commit cb9c6e35ba
1 changed files with 4 additions and 2 deletions

View File

@ -77,6 +77,8 @@ function pandora_session_gc ($max_lifetime = 300) {
return $retval;
}
$result_handler = session_set_save_handler ('pandora_session_open', 'pandora_session_close', 'pandora_session_read', 'pandora_session_write', 'pandora_session_destroy', 'pandora_session_gc');
// FIXME: SAML should work with pandora session handlers
if (db_get_value('value', 'tconfig', 'token', 'auth') != "saml") {
$result_handler = session_set_save_handler ('pandora_session_open', 'pandora_session_close', 'pandora_session_read', 'pandora_session_write', 'pandora_session_destroy', 'pandora_session_gc');
}
?>