Robert Kern avatar Robert Kern committed 0be3bdd

BUG: prevent usernames with spaces.
(transplanted from ffd7ea65caf5585d7d8f76a3f3be605fee865d1f)

Comments (0)

Files changed (2)

     if value[:1] == '.' or value[-1:] == '.':
         raise forms.ValidationError(_(u'The username may not begin or '
                                       u'end with a dot.'))
+    if ' ' in value:
+        raise forms.ValidationError(_(u'The username may not contain '
+                                      u'spaces.'))
 
 
 def is_http_url(form, value):

solace/templates/core/register_openid.html

   <p>
     This is the first time you log in with your <strong>{{ openid }}</strong>
     account.  Please pick a username that will be associated with you.  This
-    username is unique and cannot be changed later, so pick with care.
+    username is unique and cannot be changed later, so pick with care.  Do not
+    use space characters.  Once registered, you can edit your profile to provide
+    a real name to be used for display. 
   {% endtrans %}
   {% call form() %}
     {{ form.as_dl() }}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.