Server administrators may disable captchas for guest users

This commit is contained in:
Jeremy Zhang
2017-11-04 02:58:26 +00:00
parent 71209d2824
commit bba4950ddc
12 changed files with 78 additions and 6 deletions

View File

@ -100,6 +100,19 @@
</label>
</div>
<br>
<p class="flow-text">Toggle Guest Captcha</p>
<p>Prevent bots from logging into your embed</p>
<div class="switch">
<label>
Disable
<input type="checkbox" id="unauth_captcha" name="unauth_captcha" {% if guild['unauth_captcha'] %}checked{% endif %} >
<span class="lever"></span>
Enable
</label>
</div>
<br>
<p class="flow-text">Message mentions limit</p>

View File

@ -238,6 +238,7 @@
const guild_id = "{{ guild_id }}";
const bot_client_id = "{{ client_id }}";
const visitors_enabled = {% if visitors_enabled %}true{% else %}false{% endif %};
const unauth_captcha_enabled = {% if unauth_captcha_enabled %}true{% else %}false{% endif %}
</script>
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>