forgejo/modules/context
silverwind 1e6fa57acb
Use single shared random string generation function (#15741)
* Use single shared random string generation function

- Replace 3 functions that do the same with 1 shared one
- Use crypto/rand over math/rand for a stronger RNG
- Output only alphanumerical for URL compatibilty

Fixes: #15536

* use const string method

* Update modules/avatar/avatar.go

Co-authored-by: a1012112796 <1012112796@qq.com>

Co-authored-by: a1012112796 <1012112796@qq.com>
2021-05-10 07:45:17 +01:00
..
access_log.go
api.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
api_org.go
api_test.go
auth.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
captcha.go
context.go Use route rather than use thus reducing the number of stack frames (#15301) 2021-05-04 22:48:31 +01:00
csrf.go Add SameSite setting for cookies (#14900) 2021-03-07 08:12:43 +00:00
form.go
org.go Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
pagination.go
permission.go Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
private.go Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
repo.go On open repository open common cat file batch and batch-check (#15667) 2021-05-10 03:27:03 +02:00
response.go Prevent superfluous response.WriteHeader (#15456) 2021-04-14 14:57:18 +02:00
xsrf.go
xsrf_test.go