forked from MarseyWorld/MarseyWorld
fdfd
parent
19e9fe8f31
commit
7562563602
|
@ -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):
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue