LSauth :: getAuthObjectTypes(): fix handling simple LSobject type

This commit is contained in:
Benjamin Renard 2020-05-12 19:58:12 +02:00
parent 8a98a6cf30
commit e6e5f1c2b8

View file

@ -109,7 +109,7 @@ class LSauth extends LSlog_staticLoggerClass {
foreach(self :: getConfig('LSobjects', array()) as $objType => $objParams) { foreach(self :: getConfig('LSobjects', array()) as $objType => $objParams) {
if (is_int($objType) && is_string($objParams)) { if (is_int($objType) && is_string($objParams)) {
// We just have the object type // We just have the object type
$objTypes[$objType] = array('filter' => null, 'password_attribute' => 'userPassword'); $objTypes[$objParams] = array('filter' => null, 'password_attribute' => 'userPassword');
continue; continue;
} }
$objTypes[$objType] = array( $objTypes[$objType] = array(