From 761684b6690bcfcbf622d3d9b5d4c15e0b330e5a Mon Sep 17 00:00:00 2001 From: Brian Lycett Date: Mon, 6 Jul 2020 09:31:56 +0100 Subject: [PATCH] Issue 29 - config.inc.php does not take USERNAME_REGEX from environment --- www/includes/config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/includes/config.inc.php b/www/includes/config.inc.php index 0d22d13..6bff5c7 100644 --- a/www/includes/config.inc.php +++ b/www/includes/config.inc.php @@ -40,7 +40,7 @@ $SITE_NAME = (getenv('SITE_NAME') ? getenv('SITE_NAME') : 'LDAP user manager'); $USERNAME_FORMAT = (getenv('USERNAME_FORMAT') ? getenv('USERNAME_FORMAT') : '{first_name}-{last_name}'); - $USERNAME_REGEX = '^[a-z][a-zA-Z0-9\._-]{3,32}$'; + $USERNAME_REGEX = (getenv('USERNAME_REGEX') ? getenv('USERNAME_REGEX') : '^[a-z][a-zA-Z0-9\._-]{3,32}$'); #We'll use the username regex for groups too. $PASSWORD_HASH = (getenv('PASSWORD_HASH') ? getenv('PASSWORD_HASH') : 'SSHA');