updated plugin WP-WebAuthn
version 1.3.4
This commit is contained in:
@ -59,7 +59,7 @@ function updateList() {
|
||||
item_type_disabled = true;
|
||||
}
|
||||
}
|
||||
htmlStr += `<tr><td>${item.name}</td><td>${item.type === 'none' ? php_vars.i18n_9 : (item.type === 'platform' ? php_vars.i18n_10 : php_vars.i18n_11)}${item_type_disabled ? php_vars.i18n_29 : ''}</td><td>${item.added}</td><td>${item.last_used}</td><td class="wwa-usernameless-td">${item.usernameless ? php_vars.i18n_24 + (configs.usernameless === 'true' ? '' : php_vars.i18n_26) : php_vars.i18n_25}</td><td id="${item.key}"><a href="javascript:renameAuthenticator('${item.key}', '${item.name}')">${php_vars.i18n_20}</a> | <a href="javascript:removeAuthenticator('${item.key}', '${item.name}')">${php_vars.i18n_12}</a></td></tr>`;
|
||||
htmlStr += `<tr><td>${item.name}</td><td>${item.type === 'none' ? php_vars.i18n_9 : (item.type === 'platform' ? php_vars.i18n_10 : php_vars.i18n_11)}${item_type_disabled ? php_vars.i18n_29 : ''}</td><td>${item.added}</td><td>${item.last_used}</td><td class="wwa-usernameless-td">${item.usernameless ? php_vars.i18n_24 + (configs.usernameless === 'true' ? '' : php_vars.i18n_26) : php_vars.i18n_25}</td><td id="${item.key}"><a href="javascript:renameAuthenticator('${item.key}', '${item.name.replaceAll('\'', '\\\'').replaceAll(''', '\\'').replaceAll('"', '\\"')}')">${php_vars.i18n_20}</a> | <a href="javascript:removeAuthenticator('${item.key}', '${item.name.replaceAll('\'', '\\\'').replaceAll(''', '\\'').replaceAll('"', '\\"')}')">${php_vars.i18n_12}</a></td></tr>`;
|
||||
}
|
||||
jQuery('#wwa-authenticator-list').html(htmlStr);
|
||||
if (has_usernameless || configs.usernameless === 'true') {
|
||||
@ -247,7 +247,7 @@ jQuery('#wwa-bind').click((e) => {
|
||||
user_id: php_vars.user_id
|
||||
},
|
||||
success: function (data) {
|
||||
if (data === 'true') {
|
||||
if (data.trim() === 'true') {
|
||||
// Registered
|
||||
jQuery('#wwa-show-progress').html(php_vars.i18n_3);
|
||||
jQuery('#wwa-bind').removeAttr('disabled');
|
||||
@ -382,7 +382,7 @@ jQuery('#wwa-test, #wwa-test_usernameless').click((e) => {
|
||||
user_id: php_vars.user_id
|
||||
},
|
||||
success: function (data) {
|
||||
if (data === 'true') {
|
||||
if (data.trim() === 'true') {
|
||||
jQuery(tip_id).html(php_vars.i18n_16);
|
||||
jQuery('#wwa-test, #wwa-test_usernameless').removeAttr('disabled');
|
||||
updateList();
|
||||
|
Reference in New Issue
Block a user