Enforce maximum length of ban appeal

This commit is contained in:
discomrade 2021-07-24 10:47:56 -02:00
parent 4a4bb4e856
commit 4a5944795c
3 changed files with 18 additions and 6 deletions

View file

@ -136,7 +136,7 @@
{% endif %}
<form class="ban-appeal" action="" method="post">
<input type="hidden" name="ban_id" value="{{ ban.id }}">
<textarea name="appeal" rows="4" cols="40"></textarea>
<textarea name="appeal" rows="4" cols="40" maxlength="{{ config.ban_appeal_max_chars }}"></textarea>
<input type="submit" value="Submit">
</form>
{% endif %}