luci-base: generalize post security token handling
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 20 Oct 2015 18:58:30 +0000 (20:58 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 20 Oct 2015 19:04:46 +0000 (21:04 +0200)
commit562c47e5fd73bacc314f561592ad1b4ce8b8dc48
treefc92e5e5d539e28f3746a55bc326dbabbff05a4e
parente8349fbfdf5de82ba3f3e9d147c0ddfa31c2293c
luci-base: generalize post security token handling

* Add a generic helper function to check need for post / csrf token validation
* Remove custom token verification in cbi targets
* Support requiring post security depending on specific submit parameters,
  usable through post_on() action

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/dispatcher.lua