Feature: Easier whitelisting of email domains (simple patterns or flags)
aniruddha-adhikary opened this issue · 0 comments
aniruddha-adhikary commented
Is your feature request related to a problem? Please describe.
Whenever I want to open up a form for Public Officers, I need to list down a whole bunch of domain names. I need to look up a list of every possible .gov.sg domain name. This is counter-productive. Often, some forms do not whitelist newer agency domains.
Describe the solution you'd like
- A pattern based email domain whitelisting, i.e,
@*.gov.sg
,@*.edu.sg
.
I prefer this solution because this gives flexibility to users, without burdening the developers of FormSG.I realized this opens up cans of worms too. Do we allow unlimited nested subdomains for a wildcard? Like does
*.tech.gov.sg
allowsdata.tech.gov.sg
ANDsubdomain.data.tech.gov.sg
? Or should it be more likeglob
patterns (**
) - (Not my favorite) Have a toggle. (This feels extra burden to maintain)
Describe alternatives you've considered
- Pasting in a ever-changing list of possible .gov.sg emails. This is quite troublesome, and with the introduction of new .gov.sg emails, old forms would need manually updating. A simple pattern may prevent this.