[Feature] Custom Reserved Usernames and patterns #3028

Open
opened 2025-11-02 04:57:55 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mateusza on GitHub (Mar 8, 2019).

Currently, the list of invalid usernames and username patterns is defined in source code and compiled into Gitea.

There should be a configuration variable where one could place additional restrictions based on local requirements.

Description

...

Screenshots

Originally created by @mateusza on GitHub (Mar 8, 2019). Currently, the list of invalid usernames and username patterns is [defined in source code](https://github.com/go-gitea/gitea/blob/9fd8b2621fb6e25e5cce7a5b5b08a993a145bc78/models/user.go#L715) and compiled into Gitea. There should be a configuration variable where one could place additional restrictions based on local requirements. ## Description ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 04:57:55 -06:00
Author
Owner

@mateusza commented on GitHub (Mar 9, 2019):

Ideally gitea should be able to optionally run external command that would check the name according to any rules or by querying external sources, and exit with proper return value.

@mateusza commented on GitHub (Mar 9, 2019): Ideally gitea should be able to optionally run external command that would check the name according to any rules or by querying external sources, and exit with proper return value.
Author
Owner

@lunny commented on GitHub (Mar 16, 2019):

These reserved names should be stored on database and Admin UI could operate them.

@lunny commented on GitHub (Mar 16, 2019): These reserved names should be stored on database and Admin UI could operate them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3028