ldap-user-manager/www/includes/modules.inc.php
Damian Galli 4e01a09399
Feature/http header username (#120)
* Implement Remote Headers Auth

* Hide Logout on Remote Sessions

* Add Explanation for REMOTRE_HTTP_HEADERS_LOGIN settiing

Co-authored-by: Damian Galli <damian.galli@galli.site>
2022-03-09 16:00:44 +00:00

24 lines
571 B
PHP

<?php
#Modules and how they can be accessed.
#access:
#auth = need to be logged-in to see it
#hidden_on_login = only visible when not logged in
#admin = need to be logged in as an admin to see it
$MODULES = array(
'log_in' => 'hidden_on_login',
'change_password' => 'auth',
'account_manager' => 'admin',
);
if ($ACCOUNT_REQUESTS_ENABLED == TRUE) {
$MODULES['request_account'] = 'hidden_on_login';
}
if (!$REMOTE_HTTP_HEADERS_LOGIN) {
$MODULES['log_out'] = 'auth';
}
?>