fix: update confirm base URL to adiuvai.com and success messages for double opt-in
All checks were successful
Test & Deploy Waitlist / test (push) Successful in 35s
Test & Deploy Waitlist / deploy (push) Successful in 16s

This commit is contained in:
Roberto Musso
2026-04-11 19:13:59 +02:00
parent 73a76c6667
commit 5f79ce87f9
4 changed files with 4 additions and 4 deletions

View File

@@ -18,5 +18,5 @@ BREVO_LIST_ID=0
# Confirmation link # Confirmation link
CONFIRM_SECRET=replace-with-a-long-random-string CONFIRM_SECRET=replace-with-a-long-random-string
CONFIRM_BASE_URL=https://waitlist.adiuvai.com CONFIRM_BASE_URL=https://adiuvai.com
CONFIRM_TOKEN_EXPIRY_HOURS=48 CONFIRM_TOKEN_EXPIRY_HOURS=48

View File

@@ -17,7 +17,7 @@ class Settings(BaseSettings):
# Confirmation link # Confirmation link
CONFIRM_SECRET: str = secrets.token_hex(32) # override in production .env CONFIRM_SECRET: str = secrets.token_hex(32) # override in production .env
CONFIRM_BASE_URL: str = "https://waitlist.adiuvai.com" CONFIRM_BASE_URL: str = "https://adiuvai.com"
CONFIRM_TOKEN_EXPIRY_HOURS: int = 48 CONFIRM_TOKEN_EXPIRY_HOURS: int = 48
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"} model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}

View File

@@ -9,4 +9,4 @@ class WaitlistRequest(BaseModel):
class WaitlistResponse(BaseModel): class WaitlistResponse(BaseModel):
ok: bool = True ok: bool = True
message: str = "You're on the list!" message: str = "Check your inbox for a confirmation link!"

View File

@@ -57,7 +57,7 @@ async def test_join_waitlist_success(client):
assert resp.status_code == 200 assert resp.status_code == 200
data = resp.json() data = resp.json()
assert data["ok"] is True assert data["ok"] is True
assert "list" in data["message"].lower() assert "inbox" in data["message"].lower()
@pytest.mark.asyncio @pytest.mark.asyncio