]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Normalize nickname case on login; fixes failed logins where people were typing MixedC...
authorBrion Vibber <brion@pobox.com>
Thu, 25 Feb 2010 19:53:39 +0000 (11:53 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 25 Feb 2010 19:56:48 +0000 (11:56 -0800)
lib/util.php

index dd8189a5827b011bdaed1df5d27b31c3c943f4f1..84928ec4844e6f45a99b09b3fd2a80417f1964f0 100644 (file)
@@ -134,7 +134,7 @@ function common_check_user($nickname, $password)
     $authenticatedUser = false;
 
     if (Event::handle('StartCheckPassword', array($nickname, $password, &$authenticatedUser))) {
-        $user = User::staticGet('nickname', $nickname);
+        $user = User::staticGet('nickname', common_canonical_nickname($nickname));
         if (!empty($user)) {
             if (!empty($password)) { // never allow login with blank password
                 if (0 == strcmp(common_munge_password($password, $user->id),