~matiasb/django-openid-auth/py3-migration

« back to all changes in this revision

Viewing changes to README.txt

  • Committer: Anthony Lenton
  • Date: 2012-06-01 16:45:34 UTC
  • mfrom: (89.1.2 race-condition)
  • Revision ID: anthony.lenton@canonical.com-20120601164534-rp67u89u7c3e0yox
[r=mhall],[bug=1007281] Strip non-alphanumeric characters out of email for better username suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
 
167
167
This function must return a Django.http.HttpResponse instance.
168
168
 
 
169
== Use the user's email for suggested usernames ==
 
170
 
 
171
You can optionally strip out non-alphanumeric characters from the user's email
 
172
to generate a preferred username, if the server doesn't provide nick
 
173
information, by setting the following setting:
 
174
 
 
175
        OPENID_USE_EMAIL_FOR_USERNAME = True
 
176
 
 
177
Otherwise, and by default, if the server omits nick information and a user is
 
178
created it'll receive a username 'openiduser' + a number.
 
179
Consider also the OPENID_STRICT_USERNAMES setting (see ``Require a valid nickname``)