1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

remove debug fmt.Printlns

This commit is contained in:
Harvey Tindall 2020-08-20 20:35:50 +01:00
parent ee3b421566
commit 0e39b2b699
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 0 additions and 2 deletions

1
api.go
View File

@ -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})
}

View File

@ -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")