<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008-2012 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/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%>