1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 03:56:18 -04:00
gitea/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>
2023-04-17 12:36:50 -04:00
..
avatar.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
badge.go
email_address_test.go
email_address.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
error.go
external_login_user.go
follow_test.go
follow.go
list.go
main_test.go
must_change_password.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
openid_test.go
openid.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
redirect_test.go
redirect.go
search.go Add login name and source id for admin user searching API (#23376) 2023-03-15 19:53:01 +08:00
setting_keys.go
setting_test.go
setting.go Fix bug on user setting (#22539) 2023-01-21 15:31:11 +01:00
user_system.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user_test.go Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 2023-04-07 18:08:36 +08:00
user_update.go
user.go Add new user types reserved, bot, and remote (#24026) 2023-04-17 12:36:50 -04:00