mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
LSsession / logout : fixed bug
This commit is contained in:
parent
b4758b2dec
commit
647791e598
1 changed files with 17 additions and 17 deletions
|
@ -499,23 +499,6 @@ class LSsession {
|
|||
self :: $tmp_file = $_SESSION['LSsession']['tmp_file'];
|
||||
self :: $authParams = $_SESSION['LSsession']['authParams'];
|
||||
|
||||
if (isset($_GET['LSsession_logout'])) {
|
||||
$authObj = self :: getLSauthObject();
|
||||
if ($authObj) {
|
||||
$authObj -> logout();
|
||||
}
|
||||
session_destroy();
|
||||
|
||||
if (is_array($_SESSION['LSsession']['tmp_file'])) {
|
||||
self :: $tmp_file = $_SESSION['LSsession']['tmp_file'];
|
||||
}
|
||||
self :: deleteTmpFile();
|
||||
unset($_SESSION['LSsession']);
|
||||
|
||||
self :: redirect('index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if ( self :: cacheLSprofiles() && !isset($_REQUEST['LSsession_refresh']) ) {
|
||||
self :: setLdapServer(self :: $ldapServerId);
|
||||
self :: $LSprofiles = $_SESSION['LSsession']['LSprofiles'];
|
||||
|
@ -538,6 +521,23 @@ class LSsession {
|
|||
return;
|
||||
}
|
||||
|
||||
if (isset($_GET['LSsession_logout'])) {
|
||||
$authObj = self :: getLSauthObject();
|
||||
if ($authObj) {
|
||||
$authObj -> logout();
|
||||
}
|
||||
session_destroy();
|
||||
|
||||
if (is_array($_SESSION['LSsession']['tmp_file'])) {
|
||||
self :: $tmp_file = $_SESSION['LSsession']['tmp_file'];
|
||||
}
|
||||
self :: deleteTmpFile();
|
||||
unset($_SESSION['LSsession']);
|
||||
|
||||
self :: redirect('index.php');
|
||||
return;
|
||||
}
|
||||
|
||||
self :: getLSuserObject();
|
||||
|
||||
if ( !self :: cacheLSprofiles() || isset($_REQUEST['LSsession_refresh']) ) {
|
||||
|
|
Loading…
Reference in a new issue