gitea/modules/context
silverwind 1e6fa57acb
Use single shared random string generation function ()
* 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: 

* use const string method

* Update modules/avatar/avatar.go

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

Co-authored-by: a1012112796 <1012112796@qq.com>
..
access_log.go Fix access log ()
api.go [refactor] replace int with httpStatusCodes ()
api_org.go Golint fixed for modules/context
api_test.go fix API link header ()
auth.go [refactor] replace int with httpStatusCodes ()
captcha.go Fix captcha ()
context.go Use route rather than use thus reducing the number of stack frames ()
csrf.go Add SameSite setting for cookies ()
form.go Move macaron to chi ()
org.go Unified link creation. ()
pagination.go [Feature] add precise search type for Elastic Search ()
permission.go Update docs and comments to remove macaron ()
private.go Update docs and comments to remove macaron ()
repo.go On open repository open common cat file batch and batch-check ()
response.go Prevent superfluous response.WriteHeader ()
xsrf.go Move macaron to chi ()
xsrf_test.go Move macaron to chi ()