sfd
parent
de30fd53c7
commit
2c0b81297d
|
@ -261,7 +261,7 @@ def contact(v):
|
|||
else: template = 'CHRISTMAS/'
|
||||
return render_template(f"{template}contact.html", v=v)
|
||||
|
||||
@app.post("/contact")
|
||||
@app.post("/send_admin")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
|
|
|
@ -26,9 +26,10 @@
|
|||
<label class="mt-3">Your Email</label>
|
||||
<input autocomplete="off" class="form-control" value="{{v.email}}" readonly="readonly" disabled>
|
||||
|
||||
<form id="contactform" action="/contact" method="post">
|
||||
<form id="contactform" action="/send_admin" method="post">
|
||||
|
||||
<label for="input-message" class="mt-3">Your message</label>
|
||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
||||
<textarea autocomplete="off" maxlength="10000" id="input-message" form="contactform" name="message" class="form-control" required></textarea>
|
||||
<input autocomplete="off" type="submit" value="Submit" class="btn btn-primary mt-3">
|
||||
|
||||
|
|
Loading…
Reference in New Issue