From 6395756cebe7fc7d3d7590a37f6d143af048f700 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 15 Nov 2019 15:43:16 +0100 Subject: [PATCH] self service fixes --- lam/lib/modules/yubiKeyUser.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/yubiKeyUser.inc b/lam/lib/modules/yubiKeyUser.inc index 9a665da6..724a393f 100644 --- a/lam/lib/modules/yubiKeyUser.inc +++ b/lam/lib/modules/yubiKeyUser.inc @@ -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'));