Commit 95dc50c2 authored by Ad Schellevis's avatar Ad Schellevis

(auth, legacy) fix gettext on local auth issues

parent e868dc56
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment