Skip to content

Commit

Permalink
Convert email to lowercase in SSO (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
vakninr authored Aug 21, 2023
1 parent 2a65f07 commit 4b2b215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/user_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def get_user_info(self, access_token):
def authenticate_user(self, user_info):
if "email" in user_info:
user, created = get_user_model().objects.get_or_create(
email=user_info["email"]
email=user_info["email"].lower()
)
if created:
user = self.__sync_user(user_info)
Expand Down

0 comments on commit 4b2b215

Please sign in to comment.