1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-13 23:05:48 +00:00
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>
2021-05-10 07:45:17 +01:00
..
admin Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
api/v1 [API] make change repo settings work on empty repos (#15778) 2021-05-08 14:11:36 +02:00
dev [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
events Code Formats, Nits & Unused Func/Var deletions (#15286) 2021-04-09 09:40:34 +02:00
org Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
private [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
repo On open repository open common cat file batch and batch-check (#15667) 2021-05-10 03:27:03 +02:00
routes Return go-get info on subdirs (#15642) 2021-05-09 22:50:06 +01:00
user Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
home.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
init.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
install.go Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
metrics.go Move metrics from macaron to chi (#13601) 2020-11-17 15:50:06 -05:00
swagger_json.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00