Login Page, Customization Agreement
-
Good morning, Is there any way in the login page of the captive portal, the user enter their access credentials (user and password), then be redirected to a term of agreement, store that the user has already accepted the agreement term for the next not appear and only from that moment release the access to the internet. ?
Thank you
-
On the pfSEnse captive portal page, set "After authentication Redirection URL" to any web server where you show your "users agreement".
This page could even be hosted on pfSense - just upload the page.Use some cookie logic on this page so that it is only shows when the visitor doesn't have a cookie. Have the user confirm this page and send over the cookie. Redirect to whatever you want.
-
Hello Gertjan,
Thank you for the ideia.
Regards,
Andrei
-
Gertjan, a doubt, when redirecting to the agreement term, after already authenticated, if the user changes the URL above without having accepted the term, will surf because validation has already been done. Is there any way to release the navigation only after I have accepted the term?
-
Gertjan, a doubt, when redirecting to the agreement term, after already authenticated, if the user changes the URL above without having accepted the term, will surf because validation has already been done. Is there any way to release the navigation only after I have accepted the term?
Normally, this issue doesn't exist, because you mention the "agreement term" on the form where they login.
People tend to login when the read and agreed with the terms.Having them to login so they see the terms afterwards : doesn't seem ok to me.
-
Use some cookie logic on this page so that it is only shows when the visitor doesn't have a cookie.
Just a quick warning about this…
Apple in their wisdom, have set the popup page you get on the iPhone/iPad etc not to remember cookies etc. I run some Captive Portals with vouchers, that have a "Remember Voucher" button, which works fine on everything except iPhone/iPad. You can circumnavigate this, by opening up apple.com etc (And it's mostly used variants) through the firewall, so that the device can see the "Success" page at Apple.
I don't particularly like that workaround however!
-
@The:
Just a quick warning about this…
Apple in their wisdom, ..... .... see the "Success" page at Apple.
Hummm. I remember.
I tried to create a "logout URL", easy to remember for the visitor, so a "popup page" wasn't needed anymore. Juste type something like "logout.my-portal-pfsense.tld" and the user was logged out, no matter what. A very nice solution for those who like to $$ their connection.
The "session ID" has to be stored using a Cookie …. or, as you said, Apple lauches a crippled Safari browser that discards all info (among them : Cookies).
There is a huge thread somewhere in this part of the forum about this subject.