go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.12k stars 5.49k forks source link

Email specific whitelist / exemption on top of EMAIL_DOMAIN_WHITELIST #28925

Open bergerkiller opened 9 months ago

bergerkiller commented 9 months ago

Feature Description

It is a good idea to set EMAIL_DOMAIN_WHITELIST to the domain of the business to avoid spam accounts being created. However, this also restricts contracters or temp workers from being able to register. It would be nice if alongside EMAIL_DOMAIN_WHITELIST you can set a list of specific emails which are also whitelisted.

That way exceptions can be made for specific users that also need access to git. Even nicer if this could be configured by an administrator in the site configuration online, rather than through config file alone.

The current workaround is to just disable registration and enable it temporarily to allow people to register, and then turning it off again. Not very ideal.

Screenshots

No response

stdmr commented 8 months ago

this issue/proposal might be a fix for this problem. Instead of adding specific emails to the whitelist just create the respective users manually.