remotes/1693045480750635534/spooky-22
Aevann1 2021-08-03 14:26:12 +02:00
parent 19e9fe8f31
commit 7562563602
2 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ def admin_banned_domains(v):
banned_domains = g.db.query(BannedDomain).all()
return render_template("admin/banned_domains.html", v=v, banned_domains=banned_domains)
@app.post("/admin/toggle_ban_domain")
@app.post("/admin/banned_domains")
@admin_level_required(4)
@validate_formkey
def admin_toggle_ban_domain(v):

View File

@ -27,7 +27,7 @@
</table>
<form action="/admin/toggle_ban_domain" method="post">
<form action="/admin/banned_domains" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input name="domain" placeholder="Enter domain here.." class="form-control" required>
<input name="reason" placeholder="Enter ban reason here.." class="form-control">