Making WordPress.org

Changeset 11268


Ignore:
Timestamp:
10/07/2021 02:36:00 AM (3 years ago)
Author:
dd32
Message:

WordPress.org Login: Don't display the "This account is disabled" when a user attempts to login with the username 'Admin'.

Previously this code was only matching on the lowercase 'admin'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/wporg-sso/wp-plugin.php

    r11046 r11268  
    112112        public function authenticate_admin_check( $user, $user_login ) {
    113113
    114             if ( 'admin' === $user_login ) {
     114            if ( 'admin' === strtolower( $user_login ) ) {
    115115
    116116                // Returning a WP_Error from an authenticate filter doesn't block auth, as a later hooked item can return truthful.
Note: See TracChangeset for help on using the changeset viewer.