feat: per-account SMTP email settings and admin account approval#1257
Open
scracha wants to merge 2 commits into
Open
feat: per-account SMTP email settings and admin account approval#1257scracha wants to merge 2 commits into
scracha wants to merge 2 commits into
Conversation
… logo. Fix HiEventsDev#1238 broken uploadimages via volume block (appdata) in docker config
Multi-tenancy features: - Per-account SMTP email settings (admin-only, encrypted passwords) - Admin approval gate for new account registrations - SSRF protection on SMTP host validation - Rate-limited resend approval endpoint Backend: - New account_email_settings table with encrypted password storage - AccountMailerFactory resolves per-account mailer or falls back to .env default - All mail-sending services (orders, tickets, event messages) use account mailer - Account approval flow: register -> admin email -> magic link -> user confirmation - Login blocked for unapproved accounts with clear messaging - NotInternalHost validation rule blocks private/reserved IPs Frontend: - Email Settings tab in Account Settings (admin-only) - Pending Approval page after registration - Login shows 'pending approval' banner with resend button - Admin approval landing page (standalone, no auth required) Config: - APP_REQUIRE_ACCOUNT_APPROVAL=true/false - APP_ADMIN_EMAIL=admin@example.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds multi-tenancy support for email configuration and a registration approval gate.
Per-Account SMTP Email Settings
Admin Account Approval
New API Endpoints
Database Migrations
Frontend
.env.example updated