debug
This commit is contained in:
parent
8044171e8c
commit
a0a41d05db
@ -73,14 +73,6 @@ func CallbackHandler(ctx *gin.Context) {
|
|||||||
|
|
||||||
store.Set("csrf", utils.RandStringRunes(32))
|
store.Set("csrf", utils.RandStringRunes(32))
|
||||||
|
|
||||||
// Debug
|
|
||||||
encoded, err := json.Marshal(¤tUser); if err != nil {
|
|
||||||
log.Error(err.Error())
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Println(string(encoded))
|
|
||||||
|
|
||||||
store.Set("userid", currentUser.Id)
|
store.Set("userid", currentUser.Id)
|
||||||
store.Set("name", currentUser.Username)
|
store.Set("name", currentUser.Username)
|
||||||
store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%s/%s.webp", currentUser.Id, currentUser.Avatar))
|
store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%s/%s.webp", currentUser.Id, currentUser.Avatar))
|
||||||
|
@ -3,6 +3,7 @@ package discord
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"github.com/TicketsBot/GoPanel/config"
|
"github.com/TicketsBot/GoPanel/config"
|
||||||
"github.com/gin-gonic/contrib/sessions"
|
"github.com/gin-gonic/contrib/sessions"
|
||||||
"github.com/pasztorpisti/qs"
|
"github.com/pasztorpisti/qs"
|
||||||
@ -117,6 +118,8 @@ func (e *Endpoint) Request(store sessions.Session, contentType *ContentType, bod
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(string(content))
|
||||||
|
|
||||||
if rawResponse != nil {
|
if rawResponse != nil {
|
||||||
*rawResponse<-string(content)
|
*rawResponse<-string(content)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user