Permalink
Browse files

Merge pull request #60 from graingert/patch-3

Fix minor documentation issue, where email localpart extraction assumes sane email addresses
  • Loading branch information...
2 parents 36a56ce + efbd17d commit 7e6991b2db8782a1e0eb99477b46c3954e9c6de1 Michael Kelly committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/details/customization.rst
@@ -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

0 comments on commit 7e6991b

Please sign in to comment.