mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Add CSRF protection
This commit is contained in:
parent
5fdc7a59b2
commit
bf2cfaf0ed
13 changed files with 219 additions and 48 deletions
|
@ -20,3 +20,7 @@ func NewRandId(n int) string {
|
|||
func NewSessionId() string {
|
||||
return NewRandId(24)
|
||||
}
|
||||
|
||||
func NewCSRFToken() string {
|
||||
return NewRandId(24)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue