rm debug
This commit is contained in:
parent
7e740d7623
commit
0e2b6f4da4
3
auth.go
3
auth.go
@ -6,7 +6,6 @@ import (
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-contrib/sessions"
|
||||
@ -48,7 +47,6 @@ func getLoginCallback(c *gin.Context) {
|
||||
|
||||
token, err := discordConf.Exchange(context.Background(), c.Query("code"))
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
c.HTML(http.StatusInternalServerError, "error_raw.tmpl", gin.H{
|
||||
"errorMessage": "Failed to exchange code for token",
|
||||
})
|
||||
@ -57,7 +55,6 @@ func getLoginCallback(c *gin.Context) {
|
||||
|
||||
res, err := discordConf.Client(context.Background(), token).Get("https://discord.com/api/users/@me")
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
c.HTML(http.StatusInternalServerError, "error_raw.tmpl", gin.H{
|
||||
"errorMessage": "Failed to get user details from Discord",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user