luci-base: allow themes to provide sysauth.htm
authorKarl Palsson <karlp@etactica.com>
Tue, 30 Jun 2020 15:40:52 +0000 (15:40 +0000)
committerJo-Philipp Wich <jo@mein.io>
Tue, 30 Jun 2020 16:14:13 +0000 (18:14 +0200)
commitb573f106a1f10b8d728bce759ad1f5e7829864ed
tree8eab7125891e2efc4c6ba2642613e7da5164dbed
parentce35d0852f8050a5d85c2b2ca1ea114dc7207de0
luci-base: allow themes to provide sysauth.htm

Support for sysauth_template was (inadvertently) dropped in refactorings
to support the json menu construction.  This does not restore that
functionality, which allowed different templates for every node in the
dispatcher tree, but provides an alternative mechanism that allows a
theme to provide a sysauth.htm template file instead.

Tested-by: Karl Palsson <karlp@etactica.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8f9433127e5d2a576a1207da46d02389b82041a5)
modules/luci-base/luasrc/dispatcher.lua