0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 02:57:47 +01:00
gitea/models
techknowlogick 1819c4b59b
Add new user types reserved, bot, and remote (#24026)
This allows for usernames, and emails connected to them to be reserved
and not reused.

Use case, I manage an instance with open registration, and sometimes
when users are deleted for spam (or other purposes), their usernames are
freed up and they sign up again with the same information.

This could also be used to reserve usernames, and block them from being
registered (in case an instance would like to block certain things
without hardcoding the list in code and compiling from scratch).

This is an MVP, that will allow for future work where you can set
something as reserved via the interface.

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2023-04-17 12:36:50 -04:00
..
actions Treat PRs with agit flow as fork PRs when triggering actions. (#23884) 2023-04-06 16:57:30 -04:00
activities Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
admin
asymkey Prefer native parser for SSH public key parsing (#23798) 2023-04-11 14:34:28 +08:00
auth Fix 500 error if there is a name conflict when edit authentication source (#23832) 2023-03-31 22:32:18 +08:00
avatars Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
db Support converting varchar to nvarchar for mssql database (#24105) 2023-04-17 21:22:10 +08:00
dbfs Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
fixtures Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 2023-04-07 18:08:36 +08:00
git Fix branch protection priority (#24045) 2023-04-11 13:22:49 -04:00
issues Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
migrations Add migration to fix external unit access mode of owner/admin team (#24117) 2023-04-15 09:52:44 -04:00
organization Allow repo admins too to delete the repo (#23940) 2023-04-07 11:21:02 -04:00
packages Use ghost user if package creator does not exist (#23822) 2023-04-04 16:14:46 +08:00
perm Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
project Improve GetBoards and getDefaultBoard (#22981) 2023-04-09 22:07:23 +08:00
pull
repo Sort repo topic labels by name (#24123) 2023-04-14 15:29:05 -04:00
secret
system Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
unit Improve LoadUnitConfig to handle invalid or duplicate units (#23736) 2023-04-03 16:42:38 +08:00
unittest Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
user Add new user types reserved, bot, and remote (#24026) 2023-04-17 12:36:50 -04:00
webhook Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
error.go
fixture_generation.go
fixture_test.go
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go Rename repo.GetOwner to repo.LoadOwner (#22967) 2023-02-18 20:11:03 +08:00
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00