Plugin Directory

Changeset 1023855


Ignore:
Timestamp:
11/11/2014 01:39:38 PM (11 years ago)
Author:
glatze
Message:

Added fix for empty usernames

Location:
active-directory-integration/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • active-directory-integration/trunk/ad-integration_new.php

    r1000634 r1023855  
    667667        $username = strtolower($username);
    668668        $password = stripslashes($password);
    669 
     669       
     670        // Stop if username is empty
     671        if (empty($username)) {
     672            $this->_log(ADI_LOG_ERROR,'Empty username. Authentication failed.');
     673            return false;
     674        }
    670675       
    671676        // Don't use Active Directory for admin user (ID 1)
     
    24142419    protected function _get_failed_logins_within_block_time($username) {
    24152420        global $wpdb;
     2421       
     2422        if (empty($username)) {
     2423            return 0;
     2424        }
     2425       
    24162426        $table_name = $wpdb->base_prefix . ADIntegrationPlugin::TABLE_NAME;
    24172427        $time = time() - (int)$this->_block_time;
  • active-directory-integration/trunk/readme.txt

    r1000634 r1023855  
    134134= 1.1.6 =
    135135* UPD: Multisite Support updated. Centralized settings for all blogs. (Issue #0070. Thanks to William Earnhardt for his work.)
     136* FIX: Fixed a problem with empty usernames. (Thanks to Johnathon Williams for the bug report.)
    136137
    137138= 1.1.5 =
Note: See TracChangeset for help on using the changeset viewer.