Commit Graph

9 Commits (0230f1e1aa8c6b43aa84b9ff44f58e08e26d2039)

Author SHA1 Message Date
wxiaoguang 49dd906753
Use base32 for 2FA scratch token ()
* Use base32 for 2FA scratch token
* rename Secure* to Crypto*, add comments
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>
Lunny Xiao d151503d34 Upgrade xorm to v0.8.0 ()
Lunny Xiao 85202d4784
Display ui time with customize time location ()
* display ui time with customize time location

* fix lint

* rename UILocation to DefaultUILocation

* move time related functions to modules/timeutil

* fix tests

* fix tests

* fix build

* fix swagger
zeripath 026696b87a
Fix dropTableColumns sqlite implementation ()
* Fix dropTableColumns sqlite implementation

* use droptables and its index dropping support in v78 and v85

* golang-ci fixes

* Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works
Lunny Xiao aa7c34cf86 Fix error log when loading issues caused by a xorm bug ()
* fix error log when loading issues caused by a xorm bug

* upgrade packages

* fix fmt

* fix Consistency

* fix tests
kolaente f9ec2f89f2 Add golangci ()
zeripath 07bcccf9ce
Fix v85.go: Set UNIQUE constraint later ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick 46373e7657
Hash App token ()