Repository navigation
feat(auth): send trial activation emails after approval - #259
Merged
Merged
Conversation
Deploying inalpha-web with
|
| Latest commit: |
33c6f5d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://22c1975b.inalpha-web.pages.dev |
| Branch Preview URL: | https://codex-trial-activation-email.inalpha-web.pages.dev |
|
Reviewed PR head: 🤖 DeepSeek Code ReviewAdds SMTP-based trial activation emails: on admin approval (approve decision) the dashboard BFF sends a one-time activation link to the applicant, surfaces sent/failed status in the UI, and exposes the applicant email from the Paper review endpoint; SMTP credentials are injected into the dashboard container.
Findings1. [MAJOR] SMTP credentials injected into public-facing dashboard container reverses minimal-privilege boundaryLocation: infra/docker-compose.prod.yml:244
2. [MEDIUM] Approval request blocks on synchronous SMTP send (up to 15s)Location: apps/dashboard/src/app/api/admin/waitlist/[subject]/review/route.ts:50
3. [MEDIUM] Activation email hardcodes bilingual CN+EN content, ignoring applicant localeLocation: apps/dashboard/src/lib/activation-mail.ts:34
Review scope and limitationsReviewed the supplied diff and project rules. No tests were executed by this reviewer.
|
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
Send an activation email to the applicant's stored address after an administrator approves a trial or regenerates its link. Preserve approval and the manual link fallback if SMTP fails; rejected and conflicting reviews do not send mail. Treat the stored recipient as one address rather than an address list.
Validation
Documentation
Document automatic delivery, 48-hour expiry, failure fallback, and SMTP deployment configuration. Credentials remain outside version control and logs.
Review decisions