mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add github oauth.
This commit is contained in:
@ -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 ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user