diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-01 21:31:01 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-06-01 21:31:01 +1000 |
commit | 707b6f3181210fbfc2f659d7baa95d120d1154cf (patch) | |
tree | 0e3eed60884460525a854b73fffc894d81ced7d7 /api/src/routes | |
parent | Merge pull request #759 from MaddyUnderStars/fix/respectRegisterConfig (diff) | |
download | server-707b6f3181210fbfc2f659d7baa95d120d1154cf.tar.xz |
Add `promotional_email_opt_in` field to register to allow newer clients to make register requests
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/auth/register.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/routes/auth/register.ts b/api/src/routes/auth/register.ts index 94dd6502..126f3dbc 100644 --- a/api/src/routes/auth/register.ts +++ b/api/src/routes/auth/register.ts @@ -31,6 +31,8 @@ export interface RegisterSchema { date_of_birth?: Date; // "2000-04-03" gift_code_sku_id?: string; captcha_key?: string; + + promotional_email_opt_in?: boolean; } router.post("/", route({ body: "RegisterSchema" }), async (req: Request, res: Response) => { |