iamromulan / quectel-rgmii-toolkit

Quectel module RGMII toolkit
Other
40 stars 21 forks source link

Added basic Logout functionality and change to TTL status refresh #36

Closed RouteTable closed 2 months ago

iamromulan commented 2 months ago

@RouteTable This might also work (lighttpd.conf)

$HTTP["url"] =~ "^/logout$" {
    auth.require = ( "" => 
        (
            "method"  => "basic",
            "realm"   => "logged out",
            "require" => "user=logout"
        )
    )
}
RouteTable commented 2 months ago

True, but I think it would leave the status page in the background w/ the various metrics. Not that the RSSI data is necessarily a secret. The first concept I played around with was to just add the following line to each file:

<a class="navbar-item" href="javascript:window.location=window.location.href.replace(/:\/\//, '://log:out@');"> Logout </a>

Which yields a similar result. However, in the background, you could still see the signal strength data, behind the auth prompt to login again.

I couldn't find a quick and easy way to clear all of the data in the background which is why I finally gave it a new .html page. Always fun to see different and creative ways to solve problems!

Depending on the latest status of the v2 UI, all of this might be irrelevant.