Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django - Google Authentication - Create Account #362

Closed
spirit2343 opened this issue Aug 20, 2014 · 1 comment
Closed

Django - Google Authentication - Create Account #362

spirit2343 opened this issue Aug 20, 2014 · 1 comment

Comments

@spirit2343
Copy link

When a users authenticates using google account an account is created on the local database where the user name is his first name. That is a problem for two reasons: 1. I ve had legit users making account where the first name is 2 words in which case the user name has spaces. 2. its pretty common 2 people to have the same first name. What happens in this case?

Thank you!

@omab
Copy link
Owner

omab commented Apr 4, 2015

The lib avoids username collisions by appending a hash if one is detected. It's possible to "slugify" usernames to remove spaces (and other characters), just set SOCIAL_AUTH_SLUGIFY_USERNAMES = True.

@omab omab closed this as completed Apr 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants