Plugin Directory

Changeset 3342558


Ignore:
Timestamp:
08/10/2025 10:34:41 PM (8 months ago)
Author:
SS88_UK
Message:

v1.9.7

Location:
two-factor-2fa-via-email/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • two-factor-2fa-via-email/trunk/readme.txt

    r3268786 r3342558  
    133133== Changelog ==
    134134
     135= 1.9.7 =
     136* PHP Warning fix on new user
     137
    135138= 1.9.6 =
    136139* Integrated Initialization Vector
  • two-factor-2fa-via-email/trunk/ss88-two-factor-via-email.php

    r3227600 r3342558  
    44Plugin URI: https://ss88.us/plugins/two-factor-2fa-authentication-via-email-plugin-for-wordpress
    55Description: A lightweight plugin to allow the use of two-factor authentication (2FA) through email. One-click login with this Two-Factor (2FA) Authentication plugin for WordPress.
    6 Version: 1.9.6
     6Version: 1.9.7
    77Author: SS88 LLC
    88Author URI: https://ss88.us
     
    1212class SS88_2FAVE {
    1313
    14     protected $version = '1.9.6';
     14    protected $version = '1.9.7';
    1515    protected $email_tags = [];
    1616    protected $expires = 15;
     
    352352    function userOptions($U) {
    353353
    354         $isEnabled = $this->isEnabled($U->ID);
    355         $isAPIEnabled = $this->isEnabled($U->ID, 'API');
     354        $isUser = is_object($var) && isset($var->ID);
     355
     356        $isEnabled = $isUser ? $this->isEnabled($U->ID) : false;
     357        $isAPIEnabled = $isUser ? $this->isEnabled($U->ID, 'API') : false;
    356358        $isChecked = ($isEnabled) ? 'checked="checked"' : '';
    357359        $isCheckedAPI = ($isAPIEnabled) ? 'checked="checked"' : '';
Note: See TracChangeset for help on using the changeset viewer.