fix github email can contain uppercase char
This commit is contained in:
parent
85321313c1
commit
a0372a15de
|
@ -81,6 +81,7 @@ def github_callback():
|
||||||
if not email:
|
if not email:
|
||||||
raise Exception("cannot get email for github user")
|
raise Exception("cannot get email for github user")
|
||||||
|
|
||||||
|
email = email.lower()
|
||||||
user = User.get_by(email=email)
|
user = User.get_by(email=email)
|
||||||
|
|
||||||
# create user
|
# create user
|
||||||
|
|
Loading…
Reference in a new issue