Clearer explanation of why some usernames are not allowed.

        Patch by denise. 

diffs (29 lines):

diff -r daa0bcd12592 -r f3b6b45d71b8 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat      Thu Oct 08 18:32:04 2009 +0000
+++ b/bin/upgrading/en.dat      Thu Oct 08 19:06:21 2009 -0500
@@ -3985,11 +3985,11 @@ widget.createaccount.error.password.toos
 
 widget.createaccount.error.username.inuse=Sorry, this username is already in 
use.
 
+widget.createaccount.error.username.invalid=Sorry, you can't use that 
username. Either it's been reserved for future use by site administrators, or 
it contains characters that are invalid. Usernames must only contain characters 
a-z, 0-9, and underscores. Usernames can't start or end with underscores, and 
can't have more than one underscore in a row.
+
 widget.createaccount.error.username.mustenter=You must enter a username.
 
 widget.createaccount.error.username.purged=The username you entered is that of 
an account which has been deleted and purged. If you wish to use this username, 
you must first purchase a <a [[aopts]]>rename token</a> for an existing account.
-
-widget.createaccount.error.username.reserved=Sorry, that is a reserved 
username.
 
 widget.createaccount.field.birthdate=Birthdate:
 
diff -r daa0bcd12592 -r f3b6b45d71b8 cgi-bin/LJ/CreatePage.pm
--- a/cgi-bin/LJ/CreatePage.pm  Thu Oct 08 18:32:04 2009 +0000
+++ b/cgi-bin/LJ/CreatePage.pm  Thu Oct 08 19:06:21 2009 -0500
@@ -58,7 +58,7 @@ sub verify_username {
     }
 
     # don't allow protected usernames
-    $error = 
LJ::Widget::CreateAccount->ml('widget.createaccount.error.username.reserved')
+    $error = 
LJ::Widget::CreateAccount->ml('widget.createaccount.error.username.invalid')
         if LJ::User->is_protected_username( $user );
 
     $error = 
LJ::Widget::CreateAccount->ml('widget.createaccount.error.username.inuse') if 
$in_use;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to