]> source.dussan.org Git - gitea.git/commit
Add username check to doctor (#20140) (#20671)
authorJohn Olheiser <john.olheiser@gmail.com>
Thu, 4 Aug 2022 16:07:07 +0000 (11:07 -0500)
committerGitHub <noreply@github.com>
Thu, 4 Aug 2022 16:07:07 +0000 (11:07 -0500)
commitaac905dcfb61a1144240d78d953487bd213985b7
treec938fd0bfe0b8180a84ff5ba72857ed7383dcd70
parent5ce8fdbc37730d221c1bfbf0e9f9cbc44ff9302f
Add username check to doctor (#20140) (#20671)

* Add username check to doctor

- Add a new breaking change detector to Gitea's doctor, which checks if
all users still have a valid username according to Gitea. Given from
time-to-time we need to make changes, either due to new routes or due to
security, it's for a instance's admin to check if all users still have a
valid username.

* Fix extra argument

* Apply suggestions from code review

* Apply suggestions from code review
modules/doctor/breaking.go