2 Commits

Author SHA1 Message Date
Roberto Musso
5f79ce87f9 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
2026-04-11 19:13:59 +02:00
Roberto Musso
73a76c6667 fix: remove unused urlencode import
All checks were successful
Test & Deploy Waitlist / test (push) Successful in 35s
Test & Deploy Waitlist / deploy (push) Successful in 37s
2026-04-11 19:00:38 +02:00
5 changed files with 4 additions and 5 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

@@ -1,6 +1,5 @@
import asyncio import asyncio
import logging import logging
from urllib.parse import urlencode
from fastapi import APIRouter, Depends, Request from fastapi import APIRouter, Depends, Request
from fastapi.responses import HTMLResponse from fastapi.responses import HTMLResponse

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