Add: terms and conditions and privacy policy

This commit is contained in:
hyzen
2026-06-13 15:37:23 +05:30
parent f974308b74
commit 24098aacf1
81 changed files with 343 additions and 87 deletions

View File

@@ -112,6 +112,21 @@
</div>
</div>
<div class="auth-form__group auth-form__group--checkbox">
<label class="auth-form__checkbox-label" for="signup-terms">
<input
class="auth-form__checkbox"
type="checkbox"
id="signup-terms"
name="terms"
required
/>
I agree to the
<a href="/terms/" target="_blank" rel="noopener">Terms and Conditions</a> and
<a href="/privacy/" target="_blank" rel="noopener">Privacy Policy</a>.
</label>
</div>
<button type="submit" class="auth-form__submit" id="signup-submit">
<span class="auth-form__submit-text">Send verification code</span>
<span class="auth-form__submit-loader" style="display: none">
@@ -316,6 +331,10 @@
showMsg('Passwords do not match.', 'error');
return;
}
if (!document.getElementById('signup-terms').checked) {
showMsg('You must agree to the Terms and Conditions and Privacy Policy.', 'error');
return;
}
state.username = username;
state.email = email;