self service fixes

This commit is contained in:
Roland Gruber 2019-11-15 15:43:16 +01:00
parent 65412574a0
commit 6395756ceb
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,7 @@ class yubiKeyUser extends baseModule {
}
$attributes = array_change_key_case($attributes, CASE_LOWER);
$objectClass = strtolower($this->getObjectClassName());
if (!in_array_ignore_case($objectClass, $attributes['objectclass'])) {
if (!empty($objectClass) && !in_array_ignore_case($objectClass, $attributes['objectclass'])) {
return $return;
}
if (in_array('yubiKeyId', $fields)) {
@ -307,6 +307,7 @@ class yubiKeyUser extends baseModule {
$group = new htmlGroup();
$keyInput = new htmlInputField('yubiKeyId_' . $i, $keys[$i]);
$keyInput->setFieldMaxLength(12);
$keyInput->setCSSClasses(array('lam-prevent-enter'));
$group->addElement($keyInput);
$delLink = new htmlLink('', '#', '../../graphics/del.png');
$delLink->setTitle(_('Delete'));