aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/admin_auth.go
Commit message (Collapse)AuthorAgeFilesLines
* chore: use errors.New to replace fmt.Errorf with no parameters will much ↵Cheng2024-04-211-1/+2
| | | | | better (#30621) use errors.New to replace fmt.Errorf with no parameters will much better
* Use db.Find instead of writing methods for every object (#28084)Lunny Xiao2023-11-241-1/+2
| | | | For those simple objects, it's unnecessary to write the find and count methods again and again.
* Refactor Find Sources and fix bug when view a user who belongs to an ↵Lunny Xiao2023-11-031-1/+1
| | | | | | | | | | | | unactive auth source (#27798) The steps to reproduce it. First, create a new oauth2 source. Then, a user login with this oauth2 source. Disable the oauth2 source. Visit users -> settings -> security, 500 will be displayed. This is because this page only load active Oauth2 sources but not all Oauth2 sources.
* Final round of `db.DefaultContext` refactor (#27587)JakobDev2023-10-141-1/+1
| | | Last part of #27065
* Penultimate round of `db.DefaultContext` refactor (#27414)JakobDev2023-10-111-2/+2
| | | | | | | Part of #27065 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* move the `gitea admin` subcommands into separate files (#27307)Nanguan Lin2023-09-271-0/+109
As title. Probably it's better to put those sub cmd to different dirs. Will do that in the future.