Add CSRF protection

This commit is contained in:
r 2020-01-25 10:07:06 +00:00
parent 5fdc7a59b2
commit bf2cfaf0ed
13 changed files with 219 additions and 48 deletions

View file

@ -20,3 +20,7 @@ func NewRandId(n int) string {
func NewSessionId() string {
return NewRandId(24)
}
func NewCSRFToken() string {
return NewRandId(24)
}