Commits

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() }}