2FA適用後にCSRFエラーになる不具合を修正し、不要な処理を削除
This commit is contained in:
@@ -211,7 +211,7 @@ func Setup(cfg *config.Config) *gin.Engine {
|
||||
c.String(http.StatusOK, id)
|
||||
})
|
||||
|
||||
r.GET("/login/2fa", authHandler.ShowLogin2FA)
|
||||
r.GET("/login/2fa", csrfMiddleware, authHandler.ShowLogin2FA)
|
||||
r.POST("/login/2fa", csrfMiddleware, authHandler.Login2FA)
|
||||
|
||||
guest := r.Group("/")
|
||||
|
||||
Reference in New Issue
Block a user