gitea/routers/admin
Lunny Xiao 5a438ee3c0
Move all mail related codes from models to services/mailer ()
* move all mail related codes from models to modules/mailer

* fix lint

* use DBContext instead Engine

* use WithContext not WithEngine

* Use DBContext instead of Engine

* don't use defer when sess.Close()

* move DBContext to context.go and add some methods

* move mailer from modules/ to services

* fix lint

* fix tests

* fix fmt

* add gitea copyright

* fix tests

* don't expose db functions

* make code clear

* add DefaultDBContext

* fix build

* fix bug
..
admin.go Move all mail related codes from models to services/mailer ()
admin_test.go Shadow the password on cache and session config on admin panel ()
auths.go Use gitea forked macaron ()
hooks.go Implement Default Webhooks ()
main_test.go Force user to change password ()
notice.go Use gitea forked macaron ()
orgs.go Show private organization for admin, fix ()
repos.go fix ()
users.go Move all mail related codes from models to services/mailer ()
users_test.go Use gitea forked macaron ()