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

(auth, legacy) fix gettext on local auth issues

parent e868dc56
...@@ -718,7 +718,10 @@ function authenticate_user($username, $password, $authcfg = NULL) { ...@@ -718,7 +718,10 @@ 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') {
// 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. // temporary fix, ldap handler doesn't do this init yet.
ldap_setup_caenv($authcfg); 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