mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
#32057 improves the CSRF handling and is worth to backport
This commit is contained in:
1 parent
8dbe83d205
commit
2891edbbcb
7 files changed
+71
-172
No files matched your search
@@ -129,6 +129,8 @@ func webAuth(authMethod auth_service.Method) func(*context.Context) {
|
||||
// ensure the session uid is deleted
|
||||
_ = ctx.Session.Delete("uid")
|
||||
}
|
||||
|
||||
ctx.Csrf.PrepareForSessionUser(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user