mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(auth, legacy) fix gettext on local auth issues
This commit is contained in:
parent
e868dc56d8
commit
95dc50c25e
@ -718,9 +718,12 @@ function authenticate_user($username, $password, $authcfg = NULL) {
|
||||
$authName = 'Local Database';
|
||||
} else {
|
||||
$authName = $authcfg['name'];
|
||||
if ($authcfg['type'] == 'ldap') {
|
||||
// temporary fix, ldap handler doesn't do this init yet.
|
||||
ldap_setup_caenv($authcfg);
|
||||
if ($authcfg['type'] == 'local') {
|
||||
// avoid gettext type issues on Local Database, authenticator should always be named "Local Database"
|
||||
$authName = 'Local Database';
|
||||
} elseif ($authcfg['type'] == 'ldap') {
|
||||
// temporary fix, ldap handler doesn't do this init yet.
|
||||
ldap_setup_caenv($authcfg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user