luci-app-splash: protect admin status call with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
ac34dfa0bc
commit
c1278f967e
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ function index()
|
|||
node("splash", "splash").target = template("splash_splash/splash")
|
||||
node("splash", "blocked").target = template("splash/blocked")
|
||||
|
||||
entry({"admin", "status", "splash"}, call("action_status_admin"), _("Client-Splash"))
|
||||
entry({"admin", "status", "splash"}, post("action_status_admin"), _("Client-Splash"))
|
||||
|
||||
local page = node("splash", "publicstatus")
|
||||
page.target = call("action_status_public")
|
||||
|
|
|
@ -214,7 +214,7 @@ end
|
|||
<fieldset id="cbi-table-table" class="cbi-section">
|
||||
<legend><%:Active Clients%></legend>
|
||||
<div class="cbi-section-node">
|
||||
<% if is_admin then %><form action="<%=REQUEST_URI%>" method="post"><% end %>
|
||||
<% if is_admin then %><form action="<%=REQUEST_URI%>" method="post"><input type="hidden" name="token" value="<%=token%>" /><% end %>
|
||||
<table class="cbi-section-table">
|
||||
<thead>
|
||||
<tr class="cbi-section-table-titles">
|
||||
|
|
Loading…
Reference in a new issue