You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
1 year ago
..
actions Treat PRs with agit flow as fork PRs when triggering actions. (#23884) 1 year ago
activities Add activity feeds API (#23494) 1 year ago
admin Implement FSFE REUSE for golang files (#21840) 2 years ago
asymkey Prefer native parser for SSH public key parsing (#23798) 1 year ago
auth Fix 500 error if there is a name conflict when edit authentication source (#23832) 1 year ago
avatars Avoid warning for system setting when start up (#23054) 1 year ago
db Support converting varchar to nvarchar for mssql database (#24105) 1 year ago
dbfs Refactor the setting to make unit test easier (#22405) 1 year ago
fixtures Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 1 year ago
git Fix branch protection priority (#24045) 1 year ago
issues Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
migrations Add migration to fix external unit access mode of owner/admin team (#24117) 1 year ago
organization Allow repo admins too to delete the repo (#23940) 1 year ago
packages Use ghost user if package creator does not exist (#23822) 1 year ago
perm Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
project Improve GetBoards and getDefaultBoard (#22981) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Sort repo topic labels by name (#24123) 1 year ago
secret Secrets storage with SecretKey encrypted (#22142) 2 years ago
system Avoid warning for system setting when start up (#23054) 1 year ago
unit Improve LoadUnitConfig to handle invalid or duplicate units (#23736) 1 year ago
unittest Refactor `setting.Database.UseXXX` to methods (#23354) 1 year ago
user Add new user types `reserved`, `bot`, and `remote` (#24026) 1 year ago
webhook Add user webhooks (#21563) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Refactor the setting to make unit test easier (#22405) 1 year ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Supports wildcard protected branch (#20825) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Avoid warning for system setting when start up (#23054) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Always reuse transaction (#22362) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago