Hold /privacy behind a flag until counsel reads it, and fix leftover legal and email copy.
This commit is contained in:
1 parent
ead6c8f716
commit
072e5362f5
43 files changed
+548
-191
No files matched your search
@@ -1,5 +1,8 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { sendOrganizerInquiryNotification } from "../../../lib/server/mail";
|
||||
import {
|
||||
resolveMailFrom,
|
||||
sendOrganizerInquiryNotification,
|
||||
} from "../../../lib/server/mail";
|
||||
import { rateLimitKey } from "../../../lib/server/rateLimit";
|
||||
import {
|
||||
errorJson,
|
||||
@@ -66,7 +69,7 @@ export const POST = apiRoute(SCOPE, async (request: NextRequest, _ctx, { request
|
||||
return serverMisconfigured("ORGANIZER_INQUIRY_TO is not configured");
|
||||
}
|
||||
|
||||
const from = process.env.SMTP_FROM ?? "noreply@localhost";
|
||||
const from = resolveMailFrom();
|
||||
|
||||
try {
|
||||
await sendOrganizerInquiryNotification({
|
||||
|
||||
@@ -120,7 +120,7 @@ export const POST = apiRoute(SCOPE, async (request: NextRequest, _ctx, { request
|
||||
const verifyUrl = `${origin}/api/user/email-change/verify?token=${encodeURIComponent(token)}`;
|
||||
|
||||
try {
|
||||
await sendEmailChangeEmail(newEmail, verifyUrl);
|
||||
await sendEmailChangeEmail(newEmail, verifyUrl, origin);
|
||||
} catch (err) {
|
||||
logRouteError(SCOPE, requestId, err, { phase: "sendEmailChangeEmail" });
|
||||
await prisma.emailChangeToken.deleteMany({ where: { userId: user.id } });
|
||||
|
||||
Reference in new issue
Block a user