<%# Copyright 2008 Steven Barth Copyright 2008-2012 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%+header%>
">

<%:Authorization Required%>

<%:Please enter your username and password.%> <%- if fuser then %>
<%:Invalid username and/or password! Please try again.%>

<% end -%>
<% local uci = require "luci.model.uci".cursor() local fs = require "nixio.fs" local https_key = uci:get("uhttpd", "main", "key") local https_port = uci:get("uhttpd", "main", "listen_https") if type(https_port) == "table" then https_port = https_port[1] end if https_port and fs.access(https_key) then https_port = https_port:match("(%d+)$") %> <% end %> <%+footer%>