Adding text to the captive portal breaks it!



  • We have a customer using pfsense and it’s captive portal.  However, any attempt to change the captive portal breaks it.  They authenticate but get bounced back to the captive portal page again.  It takes a restore of the system configuration to return the captive portal working again.

    I have tried rebuilding the installation, upgrading to the latest version, and neither have had any success.  I have even tried changing the portal page through the shell and the same problem occurs.

    What we are trying to do it add text to the captive portal page.  If we remove text, it is OK.  But if we try to add text, or even just an image representing the text, it fails again.  Any suggestions?

    PS.  There appears to be a clue to the problem but I don't know what to do with it.  After the change, no authentication attempts show up in log …



  • Youre doing it wrong, RTFM on the captive portal configuration page, you will save yourself and your customer(s) a lot of time.



  • First off, I did RTFM.  This is how I started the process.  I attempted to upload the very same portal page with one additional paragraph of text from the Captive portal configuration page.  When one writes "I have even tried …", it means that they have tried the normal, prescribed method without success ... hence the need to "try" other things.  Any other bright ideas?



  • @pfsenseuser:

    First off, I did RTFM.  This is how I started the process.  I attempted to upload the very same portal page with one additional paragraph of text from the Captive portal configuration page.

    Please post the content of your "very same portal page with one additional paragraph" so I can show you why you havent RTFM.

    When one writes "I have even tried …", it means that they have tried the normal, prescribed method without success ... hence the need to "try" other things.  Any other bright ideas?

    When one writes the symptoms you described and additionally says "I have even tried changing the portal page through the shell and the same problem occurs.", clearly that person has NOT "tried the normal, prescribed method".



  • If you are going to continue to insult me, I see no reason to show you anything.  Perhaps someone who is interested in helping would like to post?


  • Banned

    @pfsenseuser:

    Perhaps someone who is interested in helping would like to post?

    I'm afraid any interest is shrinking rapidly, since you have produced zero useful information despite requests, and instead opted for unproductive rants and acting like crybaby.  ::)



  • Well, since you’ve asked so nicely … Here is the original php page, and the edited php page.  I didn’t edit it ... But it is possible that the edit breaks something pfsense needs.  I looked it over but didn't see anything.

    thaibar-login-etda-Y13M01D28.txt
    thaibar-login-etda-Y13M06D04.txt



  • @pfsenseuser:

    If you are going to continue to insult me, I see no reason to show you anything.  Perhaps someone who is interested in helping would like to post?

    I found a solution for your commercial problem, https://portal.pfsense.org/support-subscription.php

    G'Luck.


  • Rebel Alliance Developer Netgate

    You should not just "view source" of the portal page, edit it, and then upload it. In doing so, the page loses some important internal macros. You should edit the original modified source, or attempt to "fix" the tags that were lost. See the sample code for a default portal page to see what those are, things like

    
    <form method="post" action="$PORTAL_ACTION$">
    
    and
    
    and other such things that may have been used.</form>
    
    

Log in to reply