Plugin Directory

Changeset 3255650


Ignore:
Timestamp:
03/14/2025 12:51:50 AM (9 months ago)
Author:
tmatsuur
Message:

[Update] login rebuilder:2.8.8 Fixed an issue where the reset permission check was incorrectly changed on pages other than the alternative login page.

Location:
login-rebuilder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • login-rebuilder/trunk/login-rebuilder.php

    r3240433 r3255650  
    55Description: This plugin will create a new login page for your site. The new login page can be placed in any directory. You can also create separate login pages for administrators and for other users.
    66Author: tmatsuur
    7 Version: 2.8.7
     7Version: 2.8.8
    88Author URI: https://12net.jp/
    99Text Domain: login-rebuilder
     
    2020define( 'LOGIN_REBUILDER_DOMAIN', 'login-rebuilder' );
    2121define( 'LOGIN_REBUILDER_DB_VERSION_NAME', 'login-rebuilder-db-version' );
    22 define( 'LOGIN_REBUILDER_DB_VERSION', '2.8.7' );
     22define( 'LOGIN_REBUILDER_DB_VERSION', '2.8.8' );
    2323define( 'LOGIN_REBUILDER_PROPERTIES', 'login-rebuilder' );
    2424define( 'LOGIN_REBUILDER_LOGGING_NAME', 'login-rebuilder-logging' );
     
    816816    public function allow_password_reset( $allow, $user_id ) {
    817817        if ( 'allow_password_reset' === current_filter() && $allow && $user_id ) {
    818             $allow = false;
    819818            $user = get_user_by( 'id', $user_id );
    820819            if ( isset( $this->properties['page_subscriber'] ) &&
    821820                ! empty( $this->properties['page_subscriber'] ) &&
    822                 $this->_in_url( $this->request_uri, $this->properties['page_subscriber'] ) &&
    823                 $this->_is_secondary_login_user( $user ) ) {
    824                 $this->password_reset_user = $user;
    825                 $allow = true;
    826             } elseif ( $this->_in_url( $this->request_uri, $this->properties['page'] ) &&
    827                 $this->_is_not_secondary_login_user( $user ) ) {
    828                 $this->password_reset_user = $user;
    829                 $allow = true;
     821                $this->_in_url( $this->request_uri, $this->properties['page_subscriber'] ) ) {
     822                if ( $this->_is_secondary_login_user( $user ) ) {
     823                    $this->password_reset_user = $user;
     824                } else {
     825                    $allow = false;
     826                }
     827            } elseif ( $this->_in_url( $this->request_uri, $this->properties['page'] ) ) {
     828                if ( $this->_is_not_secondary_login_user( $user ) ) {
     829                    $this->password_reset_user = $user;
     830                } else {
     831                    $allow = false;
     832                }
    830833            }
    831834        }
  • login-rebuilder/trunk/readme.txt

    r3240433 r3255650  
    66Requires PHP: 5.6
    77Tested up to: 6.7.2
    8 Stable tag: 2.8.7
     8Stable tag: 2.8.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595== Changelog ==
    9696
     97= 2.8.8 =
     98* Bug fix: Fixed an issue where the reset permission check was incorrectly changed on pages other than the alternative login page.
     99
    97100= 2.8.7 =
    98101* Bug fix: The issue has been fixed, and the password can now be reset.
Note: See TracChangeset for help on using the changeset viewer.