summaryrefslogtreecommitdiffstats
path: root/integrations/repo_topic_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-04-08 13:21:05 +0800
committerGitHub <noreply@github.com>2022-04-08 13:21:05 +0800
commit84ceaa98bd731431c7d3a7f65e59e7ad076a540f (patch)
treefc2743a69cde4e46c3a55796e2ab1541269b6c65 /integrations/repo_topic_test.go
parent3c3d49899f0f7206e190bdeecdc4da248cc7e686 (diff)
downloadgitea-84ceaa98bd731431c7d3a7f65e59e7ad076a540f.tar.gz
gitea-84ceaa98bd731431c7d3a7f65e59e7ad076a540f.zip
Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337)
Do a refactoring to the CSRF related code, remove most unnecessary functions. Parse the generated token's issue time, regenerate the token every a few minutes.
Diffstat (limited to 'integrations/repo_topic_test.go')
-rw-r--r--integrations/repo_topic_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/repo_topic_test.go b/integrations/repo_topic_test.go
index 146f90e710..e049afdd7c 100644
--- a/integrations/repo_topic_test.go
+++ b/integrations/repo_topic_test.go
@@ -10,6 +10,7 @@ import (
"testing"
api "code.gitea.io/gitea/modules/structs"
+
"github.com/stretchr/testify/assert"
)