mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
uspot: add logoff/out support to local captive
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -288,7 +288,15 @@ return {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!uam && connected?.state) {
|
if (!uam && connected?.state) {
|
||||||
include('connected.uc', ctx);
|
switch (split(ctx.env.REQUEST_URI, '?')[0] || '') {
|
||||||
|
case '/logout':
|
||||||
|
case '/logoff':
|
||||||
|
this.logoff(ctx, false);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
include('connected.uc', ctx);
|
||||||
|
break;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!connected.data.ssid) {
|
if (!connected.data.ssid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user