updated plugin WP-WebAuthn version 1.3.1

This commit is contained in:
2023-10-22 22:21:36 +00:00
committed by Gitium
parent 959829cf69
commit c7746517a0
931 changed files with 5408 additions and 1937 deletions

View File

@ -3,7 +3,7 @@
Plugin Name: WP-WebAuthn
Plugin URI: https://flyhigher.top
Description: WP-WebAuthn allows you to safely login to your WordPress site without password.
Version: 1.2.8
Version: 1.3.1
Author: Axton
Author URI: https://axton.cc
License: GPLv3
@ -34,16 +34,19 @@ function wwa_init_data(){
// Init
$site_domain = parse_url(site_url(), PHP_URL_HOST);
$wwa_init_options = array(
'user_credentials' => "{}",
'user_credentials_meta' => "{}",
'user_credentials' => '{}',
'user_credentials_meta' => '{}',
'user_id' => array(),
'first_choice' => 'true',
'website_name' => get_bloginfo('name'),
'website_domain' => $site_domain === NULL ? "" : $site_domain,
'remember_me' => 'false',
'email_login' => 'false',
'user_verification' => 'false',
'usernameless_login' => 'false',
'allow_authenticator_type' => 'none',
'password_reset' => 'off',
'after_user_registration' => 'none',
'logging' => 'false'
);
update_option('wwa_options', $wwa_init_options);
@ -61,7 +64,7 @@ function wwa_init_data(){
// Wrap WP-WebAuthn settings
function wwa_get_option($option_name){
$val = get_option("wwa_options");
$val = get_option('wwa_options');
if(isset($val[$option_name])){
return $val[$option_name];
}else{
@ -70,7 +73,7 @@ function wwa_get_option($option_name){
}
function wwa_update_option($option_name, $option_value){
$options = get_option("wwa_options");
$options = get_option('wwa_options');
$options[$option_name] = $option_value;
update_option('wwa_options',$options);
return true;