updated plugin WP-WebAuthn
version 1.3.4
This commit is contained in:
@ -52,6 +52,7 @@ if(isset($_GET['wwa_registered']) && $_GET['wwa_registered'] === 'true'){
|
||||
foreach($data as $key => $value){
|
||||
if($user_id === $value["user"]){
|
||||
$count++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -67,7 +68,7 @@ if(isset($_GET['wwa_registered']) && $_GET['wwa_registered'] === 'true'){
|
||||
}
|
||||
}
|
||||
$wwa_not_allowed = false;
|
||||
if(!function_exists("mb_substr") || !function_exists("gmp_intval") || !wwa_check_ssl() && (parse_url(site_url(), PHP_URL_HOST) !== 'localhost' && parse_url(site_url(), PHP_URL_HOST) !== '127.0.0.1')){
|
||||
if(!function_exists("mb_substr") || !function_exists("gmp_intval") || !wwa_check_ssl() && (wp_parse_url(site_url(), PHP_URL_HOST) !== 'localhost' && wp_parse_url(site_url(), PHP_URL_HOST) !== '127.0.0.1')){
|
||||
$wwa_not_allowed = true;
|
||||
?>
|
||||
<div id="wp-webauthn-error-container">
|
||||
@ -124,6 +125,7 @@ if(!function_exists("mb_substr") || !function_exists("gmp_intval") || !wwa_check
|
||||
<div id="wwa-new-block" tabindex="-1">
|
||||
<button class="button button-small wwa-cancel"><?php _e('Close');?></button>
|
||||
<h2><?php _e('Register New Authenticator', 'wp-webauthn');?></h2>
|
||||
<?php /* translators: %s: user login name */ ?>
|
||||
<p class="description"><?php printf(__('You are about to associate an authenticator with the current account <strong>%s</strong>.<br>You can register multiple authenticators for an account.', 'wp-webauthn'), $user->user_login);?></p>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user