Skip to content

Support wildcards in email domain whitelisting #20255

Closed
@KingBain

Description

@KingBain

Feature Description

Was working on setting up a semi-private gitea site that limited registration to just the main Government of Canada(GC) email domains. There are primarily two email TL domains associated with the GC, *.gc.ca and canada.ca.

A full list of .gc domains can be seen here.

When I tried to use a wildcard address in EMAIL_DOMAIN_WHITELIST I noticed that the * wildcard was not supported.

So I am requesting wildcard support in EMAIL_DOMAIN_WHITELIST. I have done some experimenting to see if and how this could be done.

https://go.dev/play/p/A7bV1R2g9jh

Unfortunatley I'm not a strong golan coder, so my pullrequest will probably not pass your QC and testing

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions