mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Add: terms and conditions and privacy policy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user