restrict v10

This commit is contained in:
tamakyi
2026-10-19 00:07:22 +08:00
parent 7e0e1cba49
commit efd5fce9a7
10 changed files with 92 additions and 32 deletions
+7
View File
@@ -46,6 +46,13 @@
{{ end }}
</select>
</div>
<!-- 规则同意:前端 required 只是第一道,服务端同样校验(form.Register.AgreeRules) -->
<div class="uk-margin">
<label class="uk-text-small">
<input type="checkbox" name="agree_rules" value="1" class="uk-checkbox" required>
{{t .LangCode "auth.register.agreePrefix"}}<a href="/rules" target="_blank" rel="noopener">{{t .LangCode "auth.register.agreeLink"}}</a>
</label>
</div>
<div class="uk-margin">
{{ if eq .CaptchaType "math" }}
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" value="">