1
0
mirror of https://github.com/gogs/gogs.git synced 2025-05-31 11:42:13 +00:00

11 Commits

Author SHA1 Message Date
Joe Chen
5fb29db2db
refactor(db): migrate methods off and delete deprecated methods from user.go () 2022-11-05 23:33:05 +08:00
Joe Chen
fd798b4197
refactor(db): migrate methods off user.go () 2022-11-05 17:55:05 +08:00
Joe Chen
c502dc6ed8
refactor(db): move some methods from user.go to users.go () 2022-10-22 14:41:40 +08:00
Joe Chen
083c3ee659
db: refactor "action" table to use GORM ()
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-06-25 18:07:39 +08:00
deepsource-autofix[bot]
deec3516d5
autofix: fix check for empty string ()
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 16:33:45 +08:00
Atin
d6987ee05b
chore: fix typos in code comments () 2021-05-19 13:12:09 +08:00
ᴜɴᴋɴᴡᴏɴ
9d64d222a8
db: add tests for users ()
* Add new methods

* Use Users.Create to replace previous hack

* Reduce side effect

* Do not clear tables when test failed

* test_users_Authenticate

* Rename constant

* test_users_Create

* test_users_GetByEmail

* test_users_GetByID

* test_users_GetByUsername
2020-04-18 12:07:30 +08:00
ᴜɴᴋɴᴡᴏɴ
9e9ca66467
refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
ᴜɴᴋɴᴡᴏɴ
82ff0c5852
email: check the owner when set as primary ()
* email: check the owner when set as primary

Fixes a security issue reported by muxishuihan.

* Update CHANGELOG
2020-03-15 18:58:56 +08:00
ᴜɴᴋɴᴡᴏɴ
f04b2d4350
lint: fix some Golang CI lint issues () 2020-03-01 14:55:03 +08:00
Unknwon
01c8df01ec
internal: move packages under this directory ()
* Rename pkg -> internal

* Rename routes -> route

* Move route -> internal/route

* Rename models -> db

* Move db -> internal/db

* Fix route2 -> route

* Move cmd -> internal/cmd

* Bump version
2019-10-24 01:51:46 -07:00