Captive Portal: Issues, User logout not working

Started by vivekmauli14, August 05, 2024, 10:17:19 AM

Previous topic - Next topic
August 05, 2024, 10:17:19 AM Last Edit: August 05, 2024, 01:47:57 PM by vivekmauli14
Hi,

recently I upgraded my opnsense 24.1 firewall to 24.7, few issues I noticed while using the Captive portal are:

1. The user is logged in after submitting the form, though you must refresh the page manually. Otherwise, you wont see the logged-in user and logout button

2.  Logout button not working. When I tried to logout the user from the UI of <IP>:8000, The logout button doesn't work. User sessions remains continue.


Am I the only one facing these issues? Looking for a resolution.

Thanks,
Vivek

Moin,
ich habe das gleiche Problem.
Im JSON Objekt steht die richtige IP-Adresse zur der Session + ClientState = "unknown".
Im default Template geht es bei mir ebenfalls nicht mehr mit der neuen Version.
Ich befürchte hier gibt es Probleme mit der PHP Funktion.

Falls jemand eine Lösung kennt, dann wäre ich auch interessiert.

Hi there,

I was debugging the problem from the backend and found some issues that, the actions.d commands for captive portal, particularly the disconnect command which runs with configdprun, has mismatched parameter values
So you can debug and solve the disconnect parameters in actions.d or you can just remove the zoneid from the configdprun of accesscontroller of captive portal API.

here https://github.com/opnsense/core/pulls/7740

Be careful though, I haven't tested it with multiple zones.

cheers,
VivekSP

Thanks a lot, we'll ship this in 24.7.1 today.


Cheers,
Franco