uspot: add logoff/out support to local captive

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-06-07 16:44:11 +02:00
parent 4ca64012ef
commit e17c6e5918

View File

@@ -288,7 +288,15 @@ return {
}
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;
}
if (!connected.data.ssid) {