[luci] Login form and default module

Jo-Philipp Wich xm at subsignal.org
Wed Jul 20 15:24:59 CEST 2011


Hi Pau.

You need to set the sysauth properties on your root-level node:

  x = entry({"myApp"}, template("myApp/overview"), "myApp", 1)
  x.dependant             = false
  x.sysauth               = "root"
  x.sysauth_authenticator = "htmlauth"

(see controller/admin/index.lua)

To make your site the index, use:

  local root = node()
  root.target = alias("myApp")
  root.index  = true

This should work as long as the name of your app > "admin" due to
alphabetical sorting.

~ Jow


More information about the luci mailing list