remove debug fmt.Printlns

pull/20/head
Harvey Tindall 4 years ago
parent ee3b421566
commit 0e39b2b699
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -617,7 +617,6 @@ func (app *appContext) Logout(gc *gin.Context) {
return
}
app.invalidTokens = append(app.invalidTokens, cookie)
fmt.Println("After appending", cookie, ":", app.invalidTokens)
gc.SetCookie("refresh", "invalid", -1, "/", gc.Request.URL.Hostname(), true, true)
gc.JSON(200, map[string]bool{"success": true})
}

@ -102,7 +102,6 @@ func (app *appContext) GetToken(gc *gin.Context) {
}
cookie, err := gc.Cookie("refresh")
if err == nil && cookie != "" && creds[0] == "" && creds[1] == "" {
fmt.Println("Checking:", cookie)
for _, token := range app.invalidTokens {
if cookie == token {
app.debug.Printf("Auth denied: Refresh token in blocklist")

Loading…
Cancel
Save