Skip to content

Commit

Permalink
Issue 29 - config.inc.php does not take USERNAME_REGEX from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelybird committed Jul 6, 2020
1 parent 4ea1da0 commit 761684b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/includes/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 761684b

Please sign in to comment.