Bug #1679

Login redirect issue

Added by Andreas Böhm almost 2 years ago. Updated almost 2 years ago.

Status:New Start date:07/14/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Web Interface
Target version:Future
Affected version:2.0 Affected Architecture:

Description

1. Login and go to the captive portal status page (URL: http://your-pfsense-box.org/status_captiveportal.php)
2. Wait for your session to expire
3. Reload the page (URL: http://your-pfsense-box.org/status_captiveportal.php) and you´ll see the login form
4. Login and you´ll be redirected to the main page (URL: http://your-pfsense-box.org)

Fix:

In the file authgui.inc in /etc/inc add this $page = basename($_SERVER["SCRIPT_FILENAME"]); line after include("priv.inc");

Now you´ll stay on the page on which you logged in :)

History

#1 Updated by Andreas Böhm almost 2 years ago

Note:

This fix keeps the redirect for non privileged users active.

#2 Updated by Ermal Luçi almost 2 years ago

  • Target version changed from 2.0 to Future

There was a reason of removing automatic redirection.
Mostly was because of automatic posting that could break things in unwanted ways.

Also available in: Atom PDF