Plugin Directory

Changeset 2907229


Ignore:
Timestamp:
05/03/2023 02:54:34 AM (3 years ago)
Author:
code9fair
Message:

Fixed bug Wrong security IP

Location:
code9/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code9/trunk/code9.php

    r2907223 r2907229  
    44Plugin URI: https://wordpress.org/plugins/code9/
    55Description: Utility tool for wordpress. 2-step verificatoin code user login.
    6 Version:     1.0.12
     6Version:     1.0.13
    77Author:      Code9Fair
    88Author URI: https://paypal.me/code9fair/
  • code9/trunk/function/code9_security.php

    r2907223 r2907229  
    245245
    246246                            throw new Exception('Wrong server name');
    247                         } else if (isset($data_decrypt->remote_ip) !== true /*|| $data_decrypt->remote_ip !== $_SERVER['REMOTE_ADDR']*/) {
     247                        }
     248                        /*
     249                        else if (isset($data_decrypt->remote_ip) !== true || $data_decrypt->remote_ip !== $_SERVER['REMOTE_ADDR']) {
    248250                            code9_security_public_unset();
    249251
    250252                            throw new Exception('Wrong security ip');
    251                         } else {
     253                        }
     254                        */
     255                        else {
    252256                            if (isset($_SESSION['code9_security_auth_' . $admin_id]) !== true || $_SESSION['code9_security_auth_' . $admin_id] !== $_COOKIE['code9_security_public']) {
    253257                                throw new Exception('2step-code9');
  • code9/trunk/readme.txt

    r2907223 r2907229  
    55Requires at least: 4.1
    66Tested up to: 6.2
    7 Stable tag: 1.0.12
     7Stable tag: 1.0.13
    88Requires PHP: 5.6.4
    99License: GPLv2
     
    7777= 1.0.12 =
    7878* Fixed force to logout when use Wordpress with Cloudflare.
     79= 1.0.13 =
     80* Fixed bug Wrong security IP.
Note: See TracChangeset for help on using the changeset viewer.