bench-forgejo/routers/user
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
..
setting Move modules/forms to services/forms (#15305) 2021-04-06 20:44:05 +01:00
auth.go Allow only internal registration (#15795) 2021-05-09 16:13:35 +02:00
auth_openid.go Use single shared random string generation function (#15741) 2021-05-10 07:45:17 +01:00
avatar.go Prevent NPE on avatar direct rendering if federated avatars disabled (#15434) 2021-04-12 20:57:12 -04:00
home.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
home_test.go Issues overview should not show issues from archived repos (#13220) 2021-01-12 23:19:17 -05:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
notification.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
oauth.go Feature/oauth userinfo (#15721) 2021-05-06 01:30:15 -04:00
profile.go add /assets as root dir of public files (#15219) 2021-04-28 12:35:06 +00:00
task.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00