Add github oauth.

This commit is contained in:
Yang Luo
2021-02-14 00:22:24 +08:00
parent ea09beffe2
commit c81118feff
14 changed files with 419 additions and 8 deletions

View File

@ -21,3 +21,19 @@ func CheckUserLogin(userId string, password string) string {
return ""
}
func HasMail(email string) string {
user := GetMail(email)
if user != nil {
return user.Email
}
return ""
}
func HasGithub(github string) string {
user := GetGithub(github)
if user != nil {
return user.Github
}
return ""
}