Follow-up to r56684 - stop people registering invalid usernames.
authorHappy-melon <happy-melon@users.mediawiki.org>
Mon, 21 Sep 2009 11:58:29 +0000 (11:58 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Mon, 21 Sep 2009 11:58:29 +0000 (11:58 +0000)
includes/Login.php

index c30858c..6d199d5 100644 (file)
@@ -301,7 +301,7 @@ class Login {
                global $wgAuth, $wgUser;
 
                $fields = array(
-                       'name' => $this->mName,
+                       'name' => User::getCanonicalName( $this->mName ),
                        'password' => $byEmail ? null : User::crypt( $this->mPassword ),
                        'email' => $this->mEmail,
                        'options' => array(