Browse Source

fix github email can contain uppercase char

Son NK 5 năm trước cách đây
mục cha
commit
a0372a15de
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/auth/views/github.py

+ 1 - 0
app/auth/views/github.py

@@ -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