Add a EMAIL_DOMAIN_SIGNUP_WHITELIST configuration option #13731

Open
opened 2025-11-02 10:51:37 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @stdmr on GitHub (Nov 20, 2024).

Feature Description

Our current use case is, that we restrict user registration via the EMAIL_DOMAIN_WHITELIST option. But after a successful registration each user should be able to add secondary email addresses (or change the primary email address) without any restrictions.

EMAIL_DOMAIN_WHITELIST is to restrictive! There was already a discussion about the possibility to allow admin users to circumvent the EMAIL_DOMAIN_WHITELIST (see: https://github.com/go-gitea/gitea/issues/28925 ), which was accepted.
But regular users still can't change their email to an address which is not on the email whitelist.

Our proposal: We want the email whitelist check only for new signups. Nothing else.
To not break workflows for other gitea instances it may be the best to just add another configuration option EMAIL_DOMAIN_SIGNUP_WHITELIST (name is just a proposal from me) which is only checked when a user tries to signup supplying an email and a password.

Screenshots

No response

Originally created by @stdmr on GitHub (Nov 20, 2024). ### Feature Description Our current use case is, that we restrict user registration via the EMAIL_DOMAIN_WHITELIST option. But after a successful registration each user should be able to add secondary email addresses (or change the primary email address) without any restrictions. EMAIL_DOMAIN_WHITELIST is to restrictive! There was already a discussion about the possibility to allow admin users to circumvent the EMAIL_DOMAIN_WHITELIST (see: https://github.com/go-gitea/gitea/issues/28925 ), which was accepted. But regular users still can't change their email to an address which is not on the email whitelist. Our proposal: We want the email whitelist check only for new signups. Nothing else. To not break workflows for other gitea instances it may be the best to just add another configuration option EMAIL_DOMAIN_SIGNUP_WHITELIST (name is just a proposal from me) which is only checked when a user tries to signup supplying an email and a password. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:51:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13731