debug
This commit is contained in:
parent
7f70992543
commit
ecf918a2a4
@ -73,6 +73,14 @@ 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(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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user