webauthn
This commit is contained in:
parent
38addc429c
commit
7df361d6d0
|
@ -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'));
|
||||||
|
|
|
@ -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: '',
|
||||||
|
|
Loading…
Reference in New Issue