🐛 Force remove headers before redirection

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-04 19:32:18 +01:00
parent d66a75a5ce
commit 67ea371cc9
3 changed files with 18 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ if ($_ENV['OIDC_DISABLE_SSL'] == "true") {
$oidc->setVerifyPeer(false);
}
// Custom functions
function oidc_set_vars($sub, $uid, $fname, $lname, $email) {
$_SESSION['uuid'] = $sub;
@@ -39,3 +40,8 @@ function is_signed_in() {
return false;
}
}
function create_alert($type, $msg) {
$thisAlert = array($type, $msg);
array_push($_SESSION['alerts'], $thisAlert);
}