mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-19 07:52:54 +01:00
4e01a09399
* 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>
24 lines
571 B
PHP
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';
|
|
}
|
|
|
|
?>
|