From ecf918a2a4f179179f4fd67ed108c240d30ae02c Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Sun, 1 Mar 2020 12:52:00 +0000 Subject: [PATCH] debug --- app/http/endpoints/root/callback.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/http/endpoints/root/callback.go b/app/http/endpoints/root/callback.go index 1903377..b2211fd 100644 --- a/app/http/endpoints/root/callback.go +++ b/app/http/endpoints/root/callback.go @@ -73,6 +73,14 @@ func CallbackHandler(ctx *gin.Context) { 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("name", currentUser.Username) store.Set("avatar", fmt.Sprintf("https://cdn.discordapp.com/avatars/%s/%s.webp", currentUser.Id, currentUser.Avatar))