Title: Case Sensitivity issue
Last modified: July 5, 2017

---

# Case Sensitivity issue

 *  [Code-Ninja](https://wordpress.org/support/users/code-ninja/)
 * (@code-ninja)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/case-sensitivity-issue/)
 * Slight bug/issue
 * User gets their password wrong, and you get an log entry of :-
 *  Authentication failure for {$username}
 * Which hits wordpress-soft and gives them 3 tries to login. (this is good)
 * User gets their password wrong while using different capitalisation of their 
   username (users!!!), and you get an log entry of :-
 *  Authentication attempt for unknown user {$username}
 * Which hits wordpress-hard and is an instant ban. (this is bad)
 * Any chance of an update to make the if statement case insensitive?
 *  $msg .= (wp_cache_get($username, ‘userlogins’))
    ? “uthentication failure for{
   $username}” : “uthentication attempt for unknown user {$username}”;
 * Thanks…

Viewing 1 replies (of 1 total)

 *  Thread Starter [Code-Ninja](https://wordpress.org/support/users/code-ninja/)
 * (@code-ninja)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/case-sensitivity-issue/#post-9290103)
 * I am temporary getting past it on a site that is causing problems by switching
 *  $msg .= (wp_cache_get($username, ‘userlogins’))
    with $msg .= (wp_cache_get(
   strtolower($username), ‘userslugs’))

Viewing 1 replies (of 1 total)

The topic ‘Case Sensitivity issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-fail2ban/assets/icon-256x256.png?rev=2814701)
 * [WP fail2ban - Advanced Security](https://wordpress.org/plugins/wp-fail2ban/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fail2ban/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fail2ban/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fail2ban/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fail2ban/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fail2ban/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Code-Ninja](https://wordpress.org/support/users/code-ninja/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/case-sensitivity-issue/#post-9290103)
 * Status: not resolved