Skip to content

Commit

Permalink
Merge pull request mozilla#60 from graingert/patch-3
Browse files Browse the repository at this point in the history
Fix minor documentation issue, where email localpart extraction assumes sane email addresses
  • Loading branch information
Michael Kelly authored and Michael Kelly committed Apr 16, 2012
2 parents 36a56ce + efbd17d commit 7e6991b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/details/customization.rst
Expand Up @@ -19,7 +19,7 @@ algorithm via your settings.py::
# settings.py
BROWSERID_CREATE_USER = True
def username(email):
return email.split('@')[0]
return email.rsplit('@', 1)[0]
BROWSERID_USERNAME_ALGO = username

You can can provide your own function to create users by setting
Expand Down

0 comments on commit 7e6991b

Please sign in to comment.