luci-base: improve login/logout handling
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Jan 2015 16:31:21 +0000 (17:31 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 26 Jan 2015 16:31:21 +0000 (17:31 +0100)
commit83d520ab07c05bb637d9ec35da590814064e51f8
tree109ba81b62ac1dc6b9ace5754846c13f2b362787
parent73b19f63822d511028baa8e3e7463d4e0a3ff857
luci-base: improve login/logout handling

Redirect to the canonical url after login and redirect to an url without
security token if the session expired. Also make sure that the login page
is served with status code 403, not 200 to give ajax calls a chance to
detect expired sessions.

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