From e43d520e52800ad6af16788f4fc5d718460e365c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 1 Jan 2019 11:31:43 +0100 Subject: [PATCH] limit id length --- lam/lib/modules/yubiKeyUser.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/yubiKeyUser.inc b/lam/lib/modules/yubiKeyUser.inc index e4481f62..feafd11e 100644 --- a/lam/lib/modules/yubiKeyUser.inc +++ b/lam/lib/modules/yubiKeyUser.inc @@ -5,7 +5,7 @@ use \LAM\PDF\PDFTableRow; /* This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2018 Roland Gruber + Copyright (C) 2018 - 2019 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -308,7 +308,7 @@ class yubiKeyUser extends baseModule { for ($i = 0; $i < sizeof($keys); $i++) { $group = new htmlGroup(); $keyInput = new htmlInputField('yubiKeyId_' . $i, $keys[$i]); - $keyInput->setFieldMaxLength(16384); + $keyInput->setFieldMaxLength(12); $group->addElement($keyInput); $delLink = new htmlLink('', '#', '../../graphics/del.png'); $delLink->setTitle(_('Delete'));