In my application, during registration, any uppercase letter in the username is converted to lower case. E.g. If I sign up as JohnSmith
, the app will create the username johnsmith
. This is done so that there is no confusion when accessing a user profile on the website - mysite.com/user/johnsmith
and mysite.com/user/JohnSmith
will go to the same user's profile.
I have Facebook's social login set up, and Facebook automatically generates a username that capitalizes the first and last name. E.g. if my Facebook name is John Smith, Facebook will generate the username JohnSmith
in the application.
This creates a problem. If there is already a username in the database named 'johnsmith', Facebook goes ahead and generates 'JohnSmith' anyways, creating a conflict.
Is that a way I can modify Facebook's registration so that the username is always converted to lowercase?
> email to django-social-auth+unsub...@googlegroups.com.