Skip to content

user: accept an email at any domain - #32

Merged
msimerson merged 1 commit into
NicTool:mainfrom
aberoham:email-any-tld
Aug 29, 2026
Merged

user: accept an email at any domain#32
msimerson merged 1 commit into
NicTool:mainfrom
aberoham:email-any-tld

Conversation

@aberoham

Copy link
Copy Markdown
Contributor

joi's email() checks the TLD against its built-in list, so a user at an internal or reserved domain (.local, .corp, .test) fails validation. The api validates its own responses with this schema, so such a user can't log in: POST /session returns 500. tlds: false keeps the syntax checks and drops the list. Found with a production copy whose anonymised emails live at .test.

Joi's email() checks the TLD against its built-in list, so a user at
an internal or reserved domain fails validation. The api validates its
own responses with this schema, so such a user cannot log in: POST
/session returns 500 on "user.email" must be a valid email.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RxcUNWRPrY7gKukije8hFC
@msimerson
msimerson merged commit 9d131f3 into NicTool:main Aug 29, 2026
9 checks passed
@msimerson msimerson mentioned this pull request Aug 31, 2026
msimerson added a commit that referenced this pull request Aug 31, 2026
- zone: run 3 disabled validation cases (#33)
- id: keep ids server-owned (#34)
- user: accept an email at any syntax-valid domain (#32)
- zone: nameservers are nameserver ids (#31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants