Lunny Xiao
9defddb286
Move more model into models/user ( #17826 )
...
* Move more model into models/user
* Remove unnecessary comment
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
Lunny Xiao
a666829a37
Move user related model into models/user ( #17781 )
...
* Move user related model into models/user
* Fix lint for windows
* Fix windows lint
* Fix windows lint
* Move some tests in models
* Merge
3 years ago
KN4CK3R
429ef43793
Use new OneDev /milestones endpoint ( #17782 )
...
OneDev changed the API which fails every build at the moment.
3 years ago
wxiaoguang
013fb73068
Use `hostmatcher` to replace `matchlist`, improve security ( #17605 )
...
Use hostmacher to replace matchlist.
And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
3 years ago
Lunny Xiao
fc3d082609
Move attachment into models/repo/ ( #17650 )
...
* Move attachment into models/repo/
* Fix test
* Fix bug
3 years ago
99rgosse
e1d655991b
Fix Migrate Description ( #17692 )
...
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
Lunny Xiao
3c3855a05c
Move user functions into user.go ( #17659 )
...
* Move user functions into user.go
* Fix test
3 years ago
Lunny Xiao
7e1ae38097
Move migrations into services and base into modules/migration ( #17663 )
...
* Move migrtions into services and base into modules/migration
* Fix imports
* Fix lint
3 years ago