Changeset 3255650
- Timestamp:
- 03/14/2025 12:51:50 AM (9 months ago)
- Location:
- login-rebuilder/trunk
- Files:
-
- 2 edited
-
login-rebuilder.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
login-rebuilder/trunk/login-rebuilder.php
r3240433 r3255650 5 5 Description: 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. 6 6 Author: tmatsuur 7 Version: 2.8. 77 Version: 2.8.8 8 8 Author URI: https://12net.jp/ 9 9 Text Domain: login-rebuilder … … 20 20 define( 'LOGIN_REBUILDER_DOMAIN', 'login-rebuilder' ); 21 21 define( 'LOGIN_REBUILDER_DB_VERSION_NAME', 'login-rebuilder-db-version' ); 22 define( 'LOGIN_REBUILDER_DB_VERSION', '2.8. 7' );22 define( 'LOGIN_REBUILDER_DB_VERSION', '2.8.8' ); 23 23 define( 'LOGIN_REBUILDER_PROPERTIES', 'login-rebuilder' ); 24 24 define( 'LOGIN_REBUILDER_LOGGING_NAME', 'login-rebuilder-logging' ); … … 816 816 public function allow_password_reset( $allow, $user_id ) { 817 817 if ( 'allow_password_reset' === current_filter() && $allow && $user_id ) { 818 $allow = false;819 818 $user = get_user_by( 'id', $user_id ); 820 819 if ( isset( $this->properties['page_subscriber'] ) && 821 820 ! 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 } 830 833 } 831 834 } -
login-rebuilder/trunk/readme.txt
r3240433 r3255650 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.7.2 8 Stable tag: 2.8. 78 Stable tag: 2.8.8 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 95 95 == Changelog == 96 96 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 97 100 = 2.8.7 = 98 101 * Bug fix: The issue has been fixed, and the password can now be reset.
Note: See TracChangeset
for help on using the changeset viewer.