fix: update confirm base URL to adiuvai.com and success messages for double opt-in
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"}
|
||||||
|
|||||||
@@ -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!"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user