Fixed Github OAuth name error
This commit is contained in:
parent
b57b6bcc12
commit
d077241f09
@ -84,13 +84,11 @@ func githubCallbackHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
email = user["email"].(string)
|
email = user["email"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
if user["name"] == nil {
|
name := user["login"].(string)
|
||||||
fmt.Fprintf(w, "Error: no name returned by Github")
|
if user["name"] != nil {
|
||||||
return
|
name = user["name"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
name := user["name"].(string)
|
|
||||||
|
|
||||||
link := "undefined"
|
link := "undefined"
|
||||||
if user["html_url"] != nil {
|
if user["html_url"] != nil {
|
||||||
link = user["html_url"].(string)
|
link = user["html_url"].(string)
|
||||||
|
Loading…
Reference in New Issue
Block a user