]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
Normalize nickname case on login; fixes failed logins where people were typing MixedC...
[quix0rs-gnu-social.git] / 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),