1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-04 05:18:25 +00:00
Files
gitea/modules/context/csrf.go
wxiaoguang 57c2ca7f26 Fix invalid CSRF token bug, make sure CSRF tokens can be up-to-date (#19338)
There was a bug that the CSRF token wouldn't in 24h. This fix just does what the CSRF function comment says: If this request is a GET request, it will generate a new token. Then the CSRF token can be kept up-to-date.
2022-04-06 23:47:58 +08:00

8.5 KiB