2FA適用後にCSRFエラーになる不具合を修正し、不要な処理を削除
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user