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:
parent
ee3b421566
commit
0e39b2b699
1
api.go
1
api.go
@ -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})
|
||||
}
|
||||
|
1
auth.go
1
auth.go
@ -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…
Reference in New Issue
Block a user