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/user
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
..
avatar.go Avoid warning for system setting when start up (#23054) 1 year ago
badge.go Implement FSFE REUSE for golang files (#21840) 2 years ago
email_address.go Use ErrInvalidArgument in packages (#22268) 2 years ago
email_address_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
external_login_user.go Implement FSFE REUSE for golang files (#21840) 2 years ago
follow.go Implement FSFE REUSE for golang files (#21840) 2 years ago
follow_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
list.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
must_change_password.go Add command to bulk set must-change-password (#22823) 1 year ago
openid.go Use ErrInvalidArgument in packages (#22268) 2 years ago
openid_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
redirect.go Implement FSFE REUSE for golang files (#21840) 2 years ago
redirect_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
search.go Add login name and source id for admin user searching API (#23376) 1 year ago
setting.go Fix bug on user setting (#22539) 1 year ago
setting_keys.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
user.go Add new user types `reserved`, `bot`, and `remote` (#24026) 1 year ago
user_system.go Implement actions (#21937) 1 year ago
user_test.go Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 1 year ago
user_update.go Implement FSFE REUSE for golang files (#21840) 2 years ago