CP Authentication Error Page NO LOGO



  • I'll start by saying that I'm a complete newb.  I have been struggling through setting up an effective firewall with pfsense, but one of the most basic items is still eluding me.

    I have used a few tutorials that I have found here and there to set up a captive portal with a logo. The captive portal works. The logo works.  As of today, the voucher system works.  But for whatever reason, if invalid credentials are specified, the LOGO doesn't shop up on authentication error page.  It just shows a broken link.  I am using basic HTML, no PHP.  The extent of my programming skills lies in qbasic and ladder logic, so I'm hoping this is a simple fix.



  • did you change your HTML code to point to

    "captiveportal-"LOGO.jpg ?? pfsense adds "captiveportal-" at the beginning of all images uploaded into it, that will be served by pfsense for CP.



  • Both my "Portal page contents" and my "Authentication error page contents" have the reference to captiveportal-logo.jpg.  They are html files, so the exact line is:

    ![](captiveportal-logo.jpg)
    

    This line works on the portal page.  This line does NOT work on the authentication error page.



  • @litebrite2001:

    Both my "Portal page contents" and my "Authentication error page contents" have the reference to captiveportal-logo.jpg.  They are html files, so the exact line is:

    ![](captiveportal-logo.jpg)
    

    This line works on the portal page.  This line does NOT work on the authentication error page.

    I have a logo file called "logo.jpg", and I upload it using th Captive Portal File Manager.
    When done, it informed me that I could use it if i called it "captiveportal-logo.jpg".

    here is my portal error html file:

    
    		<title>Brit Hotel Fumel</title>
    
    <form method="post" action="$PORTAL_ACTION$">
    
    ![Image](captiveportal-logo.jpg)
    
    Oops ...
    
    $PORTAL_MESSAGE$
    
    Vous êtes sur le portail d'accès" Internet " de
    
    [Brit Hotel Fumel](http://www.brit-hotel-fumel.fr/)
    
    Veuillez saisir le numéro de votre chambre
    
    Le mot de passe ´Wifi´ est disponible à la réception, et mentionné sur la feuille " Informations " présent dans votre chambre.
    
     Puis 
    
    Vous pouvez aussi vous déconnecter.
    
    Pour le faire, vous devez visiter cette page
    
    [$PORTAL_ACTION$]($PORTAL_ACTION$)
    
    à nouveau.
    
    Pour info: IP: $CLIENT_IP$ - MAC: $CLIENT_MAC$
    
    			</form>
    
    

    For me, the logo shows up.
    (No, it doesn't show up when using the preview test "View current page" on the portal settings page, but I don't care.  real lifge testing is done when you hit the portal and make a login error. The error html will be show, and then,  ;D the image shows).

    Btw: this is an html file without parsing error.
    That always helps a lot  ;)



  • I AM a newb.  I had never actually entered invalid credentials.  I would click the 'View current page" and when it worked for the portal page contents and not for the authentication error page contents, I assumed it wasn't working.  When I actually try to log in and deliberately enter bad credentials, it notifies me… with the logo and all.  Thanks everyone for the help.


Log in to reply