diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-04-08 13:21:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 13:21:05 +0800 |
commit | 84ceaa98bd731431c7d3a7f65e59e7ad076a540f (patch) | |
tree | fc2743a69cde4e46c3a55796e2ab1541269b6c65 /routers/web/repo/packages.go | |
parent | 3c3d49899f0f7206e190bdeecdc4da248cc7e686 (diff) | |
download | gitea-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 'routers/web/repo/packages.go')
0 files changed, 0 insertions, 0 deletions