浏览代码

fix github email can contain uppercase char

Son NK 5 年之前
父节点
当前提交
a0372a15de
共有 1 个文件被更改,包括 1 次插入0 次删除
  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