You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
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>
4 years ago
..
admin Move modules/forms to services/forms (#15305) 4 years ago
api/v1 [API] make change repo settings work on empty repos (#15778) 4 years ago
dev [refactor] replace int with httpStatusCodes (#15282) 4 years ago
events Code Formats, Nits & Unused Func/Var deletions (#15286) 4 years ago
org Unified link creation. (#15619) 4 years ago
private [refactor] replace int with httpStatusCodes (#15282) 4 years ago
repo On open repository open common cat file batch and batch-check (#15667) 4 years ago
routes Return go-get info on subdirs (#15642) 4 years ago
user Use single shared random string generation function (#15741) 4 years ago
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 4 years ago
home.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
init.go Refactor renders (#15175) 4 years ago
install.go Move modules/forms to services/forms (#15305) 4 years ago
metrics.go Move metrics from macaron to chi (#13601) 4 years ago
swagger_json.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago