Plugin Directory

Changeset 3346791


Ignore:
Timestamp:
08/19/2025 06:54:12 AM (7 months ago)
Author:
yipresser
Message:

fix 2fa conflicts with last_login issue. updated to v1.0.3

Location:
admin-optimizer/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin-optimizer/trunk/admin-optimizer.php

    r3345058 r3346791  
    44 * Plugin URI: https://www.yipresser.com
    55 * Description: An all-in-one plugin to enhance your WordPress sites
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Requires PHP: 7.2.5
    88 * Author: Yipresser
  • admin-optimizer/trunk/modules/2fa/two-factor-authentication.php

    r3343907 r3346791  
    9595     */
    9696    public function maybe_add_2fa_login_page( $user_login, $user ) {
     97        if ( isset( $user->adminoptim_twofa_validated ) && $user->adminoptim_twofa_validated ) {
     98            return;
     99        }
     100
    97101        if ( ! $this->is_login_page() ) {
    98102            return;
     
    183187
    184188            do_action( 'adminoptim_2fa_after_verification', $user );
     189
     190            $user->adminoptim_twofa_validated = true;
     191
     192            do_action( 'wp_login', $user->user_login, $user );
    185193
    186194            // Must be global because that's how login_header() uses it.
  • admin-optimizer/trunk/modules/settings/users-management/users-management.php

    r3343907 r3346791  
    105105                    [
    106106                        'type'  => 'slider-checkbox',
    107                         'title' => __( 'Track User last login date', 'admin-optimizer' ),
     107                        'title' => __( 'Track User\'s last login date', 'admin-optimizer' ),
    108108                        'id'    => 'enable-user-login-tracking',
    109109                        'name'  => 'enable_user_login_tracking',
     
    138138     * @return void
    139139     */
    140     public static function user_last_login( $user_login, $user ) {
     140    public function user_last_login( $user_login, $user ) {
    141141        update_user_meta( $user->ID, 'last_login', time() );
    142142    }
  • admin-optimizer/trunk/readme.txt

    r3345058 r3346791  
    77Requires PHP: 7.2.5
    88Tested up to: 6.8
    9 Stable tag: 1.0.2
     9Stable tag: 1.0.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    101101== Changelog ==
    102102
     103= 1.0.3 - 15 August 2025 =
     104* Bug fixes: fixed 2fa conflicts with last login date.
     105
    103106= 1.0.2 - 15 August 2025 =
    104 
    105107* Minor bug fixes: fixed spelling error
    106108
    107109= 1.0.1 - 13 August 2025 =
    108 
    109110* Minor bug fixes, security compliant fixes and first release to WP Plugin Directory
    110111
    111112= 1.0.0 - 25 June 2025 =
    112 
    113113* First release
    114114
Note: See TracChangeset for help on using the changeset viewer.