diff --git a/public/assets/my.js b/public/assets/my.js index a03273e..b54562d 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1332,7 +1332,7 @@ IAP.status('Fresh code sent.', 'ok'); })); $('mcVerifyBtn').addEventListener('click', busy($('mcVerifyBtn'), async () => { - const r = await api('/api/auth/email/verify', { email: $('mcEmail').value, code: $('mcCode').value }); + const r = await api('/api/auth/email/verify', { email: $('mcEmail').value, code: $('mcCode').value, newsletter: !!($('nlOptin') && $('nlOptin').checked) }); IAP.status('You are in.', 'ok'); if (r.created && !(r.account && r.account.username)) await showOnboard(); // pick a username first if (!(await showGauntlet())) await showLoginAd(); // welcome tour outranks the login ad @@ -1360,7 +1360,7 @@ } $('signupBtn').addEventListener('click', busy($('signupBtn'), async () => { - const r = await api('/api/signup', { email: $('suEmail').value, password: $('suPass').value }); + const r = await api('/api/signup', { email: $('suEmail').value, password: $('suPass').value, newsletter: !!($('nlOptin') && $('nlOptin').checked) }); IAP.status('Welcome aboard. You are in.', 'ok'); if (!(r.account && r.account.username)) await showOnboard(); await render(); diff --git a/public/my.html b/public/my.html index 163ec0d..da7eff1 100644 --- a/public/my.html +++ b/public/my.html @@ -18,6 +18,10 @@
Join free with your email. Your wallet only comes out when you buy a package or switch on payouts, and it stays yours the whole time.
+You're joining the line of