summaryrefslogtreecommitdiff
path: root/plugins/auth_remote
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-23 09:01:27 +0300
committerAndrew Dolgov <[email protected]>2021-02-23 09:01:27 +0300
commit2ae0b7059f2ed56b92a8f396c63224b36f71df09 (patch)
tree3aa1f8e8b0980c12f2b9d2b37a73034b9108acd8 /plugins/auth_remote
parent5229cc58b269bd04b2be7768107697063d95736e (diff)
cleanup some defined-stuff
Diffstat (limited to 'plugins/auth_remote')
-rw-r--r--plugins/auth_remote/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index 85be67d05..f2dcfb318 100644
--- a/plugins/auth_remote/init.php
+++ b/plugins/auth_remote/init.php
@@ -56,7 +56,7 @@ class Auth_Remote extends Auth_Base {
$_SESSION["hide_logout"] = true;
// LemonLDAP can send user informations via HTTP HEADER
- if (defined('AUTH_AUTO_CREATE') && AUTH_AUTO_CREATE){
+ if (Config::get(Config::AUTH_AUTO_CREATE)) {
// update user name
$fullname = isset($_SERVER['HTTP_USER_NAME']) ? $_SERVER['HTTP_USER_NAME'] : ($_SERVER['AUTHENTICATE_CN'] ?? "");
if ($fullname){