Fix for email send issue (#1640)

* Fix issue with sending wrong API parameter for email sending in Admin Panel
This commit is contained in:
kreegahbundolo
2020-09-10 06:58:59 +02:00
committed by GitHub
parent cfde6c99af
commit ba26722407
2 changed files with 4 additions and 4 deletions

View File

@@ -6,5 +6,5 @@ from CTFd.forms.fields import SubmitField
class SendEmailForm(BaseForm):
message = TextAreaField("Message", validators=[InputRequired()])
text = TextAreaField("Message", validators=[InputRequired()])
submit = SubmitField("Send")

View File

@@ -1,12 +1,12 @@
{% with form = Forms.email.SendEmailForm() %}
<form id="user-mail-form" method="POST">
<div class="form-group">
{{ form.message.label }}
{{ form.message(class="form-control", rows="15") }}
{{ form.text.label }}
{{ form.text(class="form-control", rows="15") }}
</div>
<div id="results">
</div>
{{ form.submit(class="btn btn-primary float-right") }}
</form>
{% endwith %}
{% endwith %}