Commit fa9cc744 authored by haemmer's avatar haemmer
Browse files

Fixed #264

parent 4c16e1f5
......@@ -145,22 +145,21 @@ function printNotice(){
$actionURL = $_SERVER['SCRIPT_NAME'].'?'.htmlentities($_SERVER['QUERY_STRING']);
$hiddenUserIdPInput = '';
$permanentUserIdPName = '';
if (
isset($_POST['user_idp'])
&& checkIDP($_POST['user_idp'])
){
$hiddenUserIdPInput = '<input type="hidden" name="user_idp" value="'.$_POST['user_idp'].'">';
$permanentUserIdPName = $IDProviders[$_POST['user_idp']]['Name'];
} elseif (
isset($_COOKIE[$redirectCookieName])
&& checkIDP($_COOKIE[$redirectCookieName])
){
$hiddenUserIdPInput = '<input type="hidden" name="user_idp" value="'.$_COOKIE[$redirectCookieName].'">';
$permanentUserIdPName = $IDProviders[$_COOKIE[$redirectCookieName]]['Name'];
}
$permanentUserIdPName = (isset($_COOKIE[$redirectCookieName])) ?
$IDProviders[$_COOKIE[$redirectCookieName]]['Name'] :
$IDProviders[$_POST['user_idp']]['Name'];
// Check if footer template exists
if(file_exists('custom-notice.php')){
include('custom-notice.php');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment