Mailman: don't use the email as username, the field is too short
This commit is contained in:
parent
250cf43047
commit
fa103c8451
1 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,9 @@ LOGIN_URL = 'hk_user_login'
|
|||
LOGOUT_URL = 'hk_user_logout'
|
||||
LOGIN_REDIRECT_URL = 'hk_root'
|
||||
|
||||
BROWSERID_USERNAME_ALGO = lambda email: email # Use the email as identifier
|
||||
# Use the email as identifier, but truncate it because the User.username field
|
||||
# is only 30 chars long.
|
||||
BROWSERID_USERNAME_ALGO = lambda email: email[:30]
|
||||
BROWSERID_VERIFY_CLASS = "django_browserid.views.Verify"
|
||||
|
||||
|
||||
|
@ -231,8 +233,6 @@ if django.VERSION[:2] < (1, 7):
|
|||
'default': 'social.apps.django_app.default.south_migrations'
|
||||
}
|
||||
|
||||
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
|
||||
|
||||
# http://python-social-auth.readthedocs.org/en/latest/pipeline.html#authentication-pipeline
|
||||
SOCIAL_AUTH_PIPELINE = (
|
||||
'social.pipeline.social_auth.social_details',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue