This commit is contained in:
Dot-Rar 2020-03-01 12:52:00 +00:00
parent 7f70992543
commit ecf918a2a4

View File

@ -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(&currentUser); 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))