Skip to content

feat(api,admin-ui): add optional signup email-enumeration protection#119

Merged
markwylde merged 4 commits intomainfrom
feat/registration-email-enumeration-toggle
Mar 2, 2026
Merged

feat(api,admin-ui): add optional signup email-enumeration protection#119
markwylde merged 4 commits intomainfrom
feat/registration-email-enumeration-toggle

Conversation

@markwylde
Copy link
Copy Markdown
Member

Summary

  • add a users.prevent_email_enumeration_on_registration setting (default false)
  • add duplicate-signup anti-enumeration behavior gated by:
    • setting enabled
    • email verification enabled
    • SMTP available
  • add new template signup_existing_account_notice and wire it through API + admin UI email template editor
  • fall back to explicit A user with this email address already exists conflict when gating conditions are not met or notice-email sending fails
  • add API model tests for duplicate-registration behavior across toggle/gating combinations

Validation

  • npm run tidy
  • npm run build

Notes

  • this keeps the default behavior explicit (duplicate email conflict) unless admins intentionally opt into anti-enumeration mode.

@markwylde markwylde merged commit 2b46b76 into main Mar 2, 2026
17 checks passed
@markwylde markwylde deleted the feat/registration-email-enumeration-toggle branch March 2, 2026 20:14
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.

1 participant