mirror of
https://gitlab.com/commento/commento.git
synced 2026-11-01 01:16:21 -05:00
Fixed Github OAuth name error
This commit is contained in:
1 parent
b57b6bcc12
commit
d077241f09
1 file changed
+3
-5
@@ -84,13 +84,11 @@ func githubCallbackHandler(w http.ResponseWriter, r *http.Request) {
|
||||
email = user["email"].(string)
|
||||
}
|
||||
|
||||
if user["name"] == nil {
|
||||
fmt.Fprintf(w, "Error: no name returned by Github")
|
||||
return
|
||||
name := user["login"].(string)
|
||||
if user["name"] != nil {
|
||||
name = user["name"].(string)
|
||||
}
|
||||
|
||||
name := user["name"].(string)
|
||||
|
||||
link := "undefined"
|
||||
if user["html_url"] != nil {
|
||||
link = user["html_url"].(string)
|
||||
|
||||
Reference in new issue
Block a user