aboutsummaryrefslogtreecommitdiffstats
path: root/modules/avatar/avatar_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Use single shared random string generation function (#15741)silverwind2021-05-101-4/+9
| | | | | | | | | | | | | | | | | | * 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>
* Avatars and Repo avatars support storing in minio (#12516)Lunny Xiao2020-10-141-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avatar support minio * Support repo avatar minio storage * Add missing migration * Fix bug * Fix test * Add test for minio store type on avatars and repo avatars; Add documents * Fix bug * Fix bug * Add back missed avatar link method * refactor codes * Simplify the codes * Code improvements * Fix lint * Fix test mysql * Fix test mysql * Fix test mysql * Fix settings * Fix test * fix test * Fix bug
* Improve handling of non-square avatars (#7025)Rob Watson2019-05-251-0/+49
| | | | | | | | | | * Crop avatar before resizing (#1268) Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com> * Fix spelling error Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Use assert in legacy unit tests (#867)Ethan Koenig2017-02-081-9/+5
|
* Remove cache avatar support and add its testsUnknwon2016-02-141-51/+13
|
* name change of avatarskyblue2014-03-261-1/+1
|
* use modeles/log instead logshxsun2014-03-241-4/+9
|
* append route to webGogs2014-03-231-10/+31
|
* add avatar inorder to view code on githubskyblue2014-03-231-0/+35