(auth, legacy) fix gettext on local auth issues

This commit is contained in:
Ad Schellevis 2015-10-28 09:46:22 +00:00
parent e868dc56d8
commit 95dc50c25e

View File

@ -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);
}
}