return false
end
-function authenticator.htmlauth(validator, default)
+function authenticator.htmlauth(validator, accs, default)
local user = luci.http.formvalue("username")
local pass = luci.http.formvalue("password")
local c = context.tree
local track = {}
local args = {}
- context.args = context.path
+ context.args = args
local n
for i, s in ipairs(request) do
if not luci.util.contains(accs, user) then
if authen then
- local user = authen(luci.sys.user.checkpasswd, def)
+ local user = authen(luci.sys.user.checkpasswd, accs, def)
if not user or not luci.util.contains(accs, user) then
return
else