From 7df361d6d0d6aa466cc47cd00d71439b836ff406 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 4 Jan 2020 19:06:01 +0100 Subject: [PATCH] webauthn --- lam/templates/config/mainmanage.php | 2 +- lam/templates/lib/500_lam.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php index 1ef2836c..f4df10e5 100644 --- a/lam/templates/config/mainmanage.php +++ b/lam/templates/config/mainmanage.php @@ -473,7 +473,7 @@ printHeaderContents(_("Edit general settings"), '../..'); $database = new \LAM\LOGIN\WEBAUTHN\PublicKeyCredentialSourceRepositorySQLite(); if ($database->hasRegisteredCredentials()) { $row->add(new htmlSubTitle(_('Webauthn devices')), 12); - $row->add(new htmlResponsiveInputField(_('User DN'), 'webauthn_userDN', null, '252'), 12); + $row->add(new htmlResponsiveInputField(_('User DN'), 'webauthn_searchTerm', null, '252'), 12); $row->addVerticalSpacer('0.5rem'); $row->add(new htmlButton('webauthn_search', _('Search')), 12, 12, 12, 'text-center'); $resultDiv = new htmlDiv('webauthn_results', new htmlOutputText(''), array('lam-webauthn-results')); diff --git a/lam/templates/lib/500_lam.js b/lam/templates/lib/500_lam.js index 26d57702..08b8e793 100644 --- a/lam/templates/lib/500_lam.js +++ b/lam/templates/lib/500_lam.js @@ -1544,7 +1544,7 @@ window.lam.webauthn.searchDevices = function(event) { } const resultDiv = jQuery('#webauthn_results'); const tokenValue = resultDiv.data('sec_token_value'); - const searchData = jQuery('#webauthn_userDN').val(); + const searchData = jQuery('#webauthn_searchTerm').val(); const data = { action: 'search', jsonInput: '', @@ -1590,7 +1590,6 @@ window.lam.webauthn.removeDevice = function(event) { const credential = element.data('credential'); const resultDiv = jQuery('#webauthn_results'); const tokenValue = resultDiv.data('sec_token_value'); - const searchData = jQuery('#webauthn_userDN').val(); const data = { action: 'delete', jsonInput: '',