Title: case-sensitive logins
Last modified: August 18, 2016

---

# case-sensitive logins

 *  [spaceninja](https://wordpress.org/support/users/spaceninja/)
 * (@spaceninja)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/case-sensitive-logins/)
 * Is there any way to make the logins NOT case-sensitive? I have a weblog that 
   my entire family uses, and these people are not going to be able to handle case-
   sensitive logins.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [spaceninja](https://wordpress.org/support/users/spaceninja/)
 * (@spaceninja)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-147848)
 * No one knows?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-147849)
 * You could make the password all lower-case if you wanted ?
 *  Thread Starter [spaceninja](https://wordpress.org/support/users/spaceninja/)
 * (@spaceninja)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-147917)
 * The password isn’t the problem – it’s the login (username) – these people aren’t
   very techy, and having to remember that Scott is different from scott will cause
   problems. Any ideas?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-147918)
 * Making a login or pw case-insensitive reduces the security aspect.
 * You could play with the login file and write a reminder there maybe ? I doubt
   it’ll take too many failed tries for him to remember. Also, his browser may auto-
   complete for him anyway.
 *  [pixelpope](https://wordpress.org/support/users/pixelpope/)
 * (@pixelpope)
 * [21 years ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148025)
 * Duh. It took me like 10 minutes to figure out that login names are case sensitive.
 * Really this is more confusing than it is securing anything, as login names are
   case-insensitive in 99%.
 *  [cavan](https://wordpress.org/support/users/cavan/)
 * (@cavan)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148044)
 * There’s no further input on this? For our site, I don’t want our users’ password
   or username to be case-sensitive. It’s frustrating for a lot of them who aren’t
   so saavy with the WWW and computers in general…and quite a few get irritated 
   and give up trying to ‘blog in’.
 * How can I go about changing this?
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148045)
 * I suppose you’d have to find all the instances of where the user_login is created
   and used before it “goes to the database” then wrap it in the php function strtolower()
 * Might be easier to let the dolts figure it out for themselves or post a “case
   sensitive” note to them.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148046)
 * Well, this dolt wished the devs had done that imagine my #^#&@$%^^*@#$%^ surprise
   after installing WP and I tried to login as “admin” …. spent two ^%$&$%^& hours
   trying to figure it out. Changed the password, tried this… tried that….. finaly
   on a whim, I tried “Admin” and what do you know, the sunnovabitch worked…. So
   am I stupid, or should there have been a better warning? All it told me was that
   my user name and password were wrong… there should have been some thing that 
   included a note that the user name is case sensitive….
 * But I’m just a gnome… what the heck do I know?
 * Tg
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148047)
 * ‘Tis a bit better than the old days, I imagine. I just registered as a new user
   and if typing “William” wasn’t a clear indication that would be my username, 
   then the e-mail I got saying:
    Subject: Your username and password Username: 
   William Password: bfa8466
 * sure should have been. 😉
 * Do you have a little car that goes “beep-beep-beep”?
 *  [mr_dotty](https://wordpress.org/support/users/mr_dotty/)
 * (@mr_dotty)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148092)
 * This seems to work for me. The most annoying thing was that it said the password
   was wrong, when the problem was the username’s case.
    Ver: WP 2.0.2 File: pluggable-
   functions.php Change line 194(in my case) from: if ( ($already_md5 && md5($login-
   >user_pass) == $password) || ($login->user_login == $username && $login->user_pass
   == md5($password)) ) { to: if ( ($already_md5 && md5($login->user_pass) == $password)
   || (strtolower($login->user_login) == strtolower($username) && $login->user_pass
   == md5($password)) ) {
 *  [Dgold](https://wordpress.org/support/users/dgold/)
 * (@dgold)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148093)
 * I did what Podz said: “You could play with the login file and write a reminder
   there maybe ?”
 * I modified the register and login pages (i think they’re something like register.
   php and login.php, found ’em somewhere in the wp-admin I think). My blogs now
   simply say “Username is CaSE sEnSitIVe” right above where you type in the username,
   under the WordPress logo.
 * The funny thing was after that I had someone new register using the username “
   case sensitive.”
 *  [mr_dotty](https://wordpress.org/support/users/mr_dotty/)
 * (@mr_dotty)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148094)
 * Sorry, forget what I wrote two messages up. It works, but they gets logged in
   with the case they wrote. Not very good, so I made another approach. Find the
   two lines in wp-login.php:
 * `if ( $user_login && $user_pass ) { 
    $user = new WP_User(0, $user_login);
 * Put this line between them:
 * `$user_login_tmp = $wpdb->get_var("SELECT user_login FROM $wpdb->users WHERE 
   user_login LIKE '$user_login'");
    if ( !$user_login_tmp == '' ) $user_login =
   $user_login_tmp;
 * And you might wish to add trim to password and userlogin. When people copy and
   paste, a space is often at the end.
    `$user_login = trim(sanitize_user( $user_login));
   $user_pass = trim($_POST['pwd']);
 * Hopefully this is a “final solution” 🙂
 * Dgold; I have a line “Write nothing here” on my blog. A few people wrote the 
   word nothing there…

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘case-sensitive logins’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 12 replies
 * 8 participants
 * Last reply from: [mr_dotty](https://wordpress.org/support/users/mr_dotty/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/case-sensitive-logins/#post-148094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
