2FA適用後にCSRFエラーになる不具合を修正し、不要な処理を削除

This commit is contained in:
furu04 committed 2026-03-25 09:48:22 +09:00
1 parent 1113477111
commit 2a4fac79b1
2 files changed
+1 -7

No files matched your search

-6
View File
@@ -101,12 +101,6 @@ func CSRF(config CSRFConfig) gin.HandlerFunc {
}
c.Next()
newToken, err := generateCSRFToken(config.Secret)
if err == nil {
session.Set(csrfTokenKey, newToken)
session.Save()
}
}
}