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) { ...@@ -718,9 +718,12 @@ function authenticate_user($username, $password, $authcfg = NULL) {
$authName = 'Local Database'; $authName = 'Local Database';
} else { } else {
$authName = $authcfg['name']; $authName = $authcfg['name'];
if ($authcfg['type'] == 'ldap') { if ($authcfg['type'] == 'local') {
// temporary fix, ldap handler doesn't do this init yet. // avoid gettext type issues on Local Database, authenticator should always be named "Local Database"
ldap_setup_caenv($authcfg); $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