Fixed style error
This commit is contained in:
parent
4660ff5317
commit
a98f65c9f6
2 changed files with 5 additions and 2 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -139,4 +139,7 @@ resources/database/*.db
|
|||
resources/sessions/sess_*
|
||||
logs/log-*.txt
|
||||
config.php
|
||||
release.zip
|
||||
release.zip
|
||||
/.settings/
|
||||
/.project
|
||||
/.buildpath
|
||||
|
|
|
@ -157,7 +157,7 @@ class LoginController extends AuthController
|
|||
array('mail',$this->config['ldap']['rdn_attribute'])
|
||||
);
|
||||
} else {
|
||||
$search = ldap_search($server, $this->config['ldap']['base_domain'], ($this->config['ldap']['rdn_attribute'] ?? 'uid=').addslashes($username),['mail']);
|
||||
$search = ldap_search($server, $this->config['ldap']['base_domain'], ($this->config['ldap']['rdn_attribute'] ?? 'uid=').addslashes($username), ['mail']);
|
||||
}
|
||||
$entry = ldap_first_entry($server, $search);
|
||||
$email = @ldap_get_values($server, $entry, 'mail')[0] ?? platform_mail($username.rand(0, 100)); // if the mail is not set, generate a placeholder
|
||||
|
|
Loading…
Reference in a new issue