1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-18 07:27:49 +02: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 return
} }
app.invalidTokens = append(app.invalidTokens, cookie) 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.SetCookie("refresh", "invalid", -1, "/", gc.Request.URL.Hostname(), true, true)
gc.JSON(200, map[string]bool{"success": 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") cookie, err := gc.Cookie("refresh")
if err == nil && cookie != "" && creds[0] == "" && creds[1] == "" { if err == nil && cookie != "" && creds[0] == "" && creds[1] == "" {
fmt.Println("Checking:", cookie)
for _, token := range app.invalidTokens { for _, token := range app.invalidTokens {
if cookie == token { if cookie == token {
app.debug.Printf("Auth denied: Refresh token in blocklist") app.debug.Printf("Auth denied: Refresh token in blocklist")