fix github email can contain uppercase char

This commit is contained in:
Son NK 2020-03-05 10:58:58 +01:00
parent 85321313c1
commit a0372a15de
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ def github_callback():
if not email:
raise Exception("cannot get email for github user")
email = email.lower()
user = User.get_by(email=email)
# create user