This commit is contained in:
Roland Gruber 2020-01-04 19:06:01 +01:00
parent 38addc429c
commit 7df361d6d0
2 changed files with 2 additions and 3 deletions

View File

@ -473,7 +473,7 @@ printHeaderContents(_("Edit general settings"), '../..');
$database = new \LAM\LOGIN\WEBAUTHN\PublicKeyCredentialSourceRepositorySQLite(); $database = new \LAM\LOGIN\WEBAUTHN\PublicKeyCredentialSourceRepositorySQLite();
if ($database->hasRegisteredCredentials()) { if ($database->hasRegisteredCredentials()) {
$row->add(new htmlSubTitle(_('Webauthn devices')), 12); $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->addVerticalSpacer('0.5rem');
$row->add(new htmlButton('webauthn_search', _('Search')), 12, 12, 12, 'text-center'); $row->add(new htmlButton('webauthn_search', _('Search')), 12, 12, 12, 'text-center');
$resultDiv = new htmlDiv('webauthn_results', new htmlOutputText(''), array('lam-webauthn-results')); $resultDiv = new htmlDiv('webauthn_results', new htmlOutputText(''), array('lam-webauthn-results'));

View File

@ -1544,7 +1544,7 @@ window.lam.webauthn.searchDevices = function(event) {
} }
const resultDiv = jQuery('#webauthn_results'); const resultDiv = jQuery('#webauthn_results');
const tokenValue = resultDiv.data('sec_token_value'); const tokenValue = resultDiv.data('sec_token_value');
const searchData = jQuery('#webauthn_userDN').val(); const searchData = jQuery('#webauthn_searchTerm').val();
const data = { const data = {
action: 'search', action: 'search',
jsonInput: '', jsonInput: '',
@ -1590,7 +1590,6 @@ window.lam.webauthn.removeDevice = function(event) {
const credential = element.data('credential'); const credential = element.data('credential');
const resultDiv = jQuery('#webauthn_results'); const resultDiv = jQuery('#webauthn_results');
const tokenValue = resultDiv.data('sec_token_value'); const tokenValue = resultDiv.data('sec_token_value');
const searchData = jQuery('#webauthn_userDN').val();
const data = { const data = {
action: 'delete', action: 'delete',
jsonInput: '', jsonInput: '',