mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSauthMethod::anonymous : Added parameter LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT
This commit is contained in:
parent
fe57bf75b0
commit
7c6d3db03a
2 changed files with 10 additions and 3 deletions
|
@ -29,4 +29,7 @@
|
|||
// User id used for anonymous connections
|
||||
define('LSAUTHMETHOD_ANONYMOUS_USER','ls');
|
||||
|
||||
// Disable logout
|
||||
define('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT',False);
|
||||
|
||||
?>
|
||||
|
|
|
@ -29,12 +29,16 @@ class LSauthMethod_anonymous extends LSauthMethod {
|
|||
|
||||
function LSauthMethod_anonymous() {
|
||||
LSauth :: disableLoginForm();
|
||||
LSauth :: disableLogoutBtn();
|
||||
LSauth :: disableSelfAccess();
|
||||
|
||||
if (!parent :: LSauthMethod())
|
||||
return;
|
||||
|
||||
if ( (!defined('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT')) || (constant('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT') === True)) {
|
||||
LSlog('logout : '.constant('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT'));
|
||||
LSauth :: disableLogoutBtn();
|
||||
}
|
||||
|
||||
if ( (!defined('LSAUTHMETHOD_ANONYMOUS_USER')) || (constant('LSAUTHMETHOD_ANONYMOUS_USER') == "")) {
|
||||
LSerror :: addErrorCode('LSauthMethod_anonymous_01');
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue