mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 15:32:54 +01:00
Fix for missing condition (#58)
Changed the condition in which the ACCOUNT_REQUESTS_ENABLED is disabled. Only disable it if it is not previously disabled.
This commit is contained in:
parent
8a147d5687
commit
953d9b7a4b
@ -76,7 +76,7 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
$ACCOUNT_REQUESTS_ENABLED = ((strcasecmp(getenv('ACCOUNT_REQUESTS_ENABLED'),'TRUE') == 0) ? TRUE : FALSE);
|
$ACCOUNT_REQUESTS_ENABLED = ((strcasecmp(getenv('ACCOUNT_REQUESTS_ENABLED'),'TRUE') == 0) ? TRUE : FALSE);
|
||||||
if ($EMAIL_SENDING_ENABLED == FALSE) {
|
if (($EMAIL_SENDING_ENABLED == FALSE) && ($ACCOUNT_REQUESTS_ENABLED == TRUE)) {
|
||||||
$ACCOUNT_REQUESTS_ENABLED = FALSE;
|
$ACCOUNT_REQUESTS_ENABLED = FALSE;
|
||||||
error_log("$log_prefix Config: ACCOUNT_REQUESTS_ENABLED was set to TRUE but SMTP_HOSTNAME wasn't set, so account requesting has been disabled as we can't send out the request email",0);
|
error_log("$log_prefix Config: ACCOUNT_REQUESTS_ENABLED was set to TRUE but SMTP_HOSTNAME wasn't set, so account requesting has been disabled as we can't send out the request email",0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user