Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    CP Login page and Error page

    Captive Portal
    3
    8
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      luke240778
      last edited by

      Hey there, quick question.  I have created a custom CP login page, only problem i have is if a user puts in an incorrect password, the RADIUS server throws bask an "Invalid User" error message, but this is displayed on a normal CP login type page, without my Logo and everything else like my login page.  What other page do i have to create? is there and Error page that i also have to make? if so where can i find the code to create this?  I basically just need it to be the same as my login page, minus the login form.

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        @luke240778:

        Hey there, quick question.  I have created a custom CP login page, only problem i have is if a user puts in an incorrect password, the RADIUS server throws bask an "Invalid User" error message, but this is displayed on a normal CP login type page, without my Logo and everything else like my login page.  What other page do i have to create? is there and Error page that i also have to make? if so where can i find the code to create this?  I basically just need it to be the same as my login page, minus the login form.

        Go to SERVICES -> CaptivePortal

        Scroll down, there you will find:

        Authentication error page contents
        

        Upload a page you like.

        The contents of the HTML/PHP file that you upload here are displayed when an authentication error occurs. You may include "$PORTAL_MESSAGE$", which will be replaced by the error or reply messages from the RADIUS server, if any.
        
        1 Reply Last reply Reply Quote 0
        • L
          luke240778
          last edited by

          Hi there, yes i have already done this but i have 2 problems.

          Firstly the RADIUS error message does not display, so i am not sure if i added the code correctly, and also the images do not display.  On the Login page i have 2 images, uploadaded them as captiveportal-logo.jpg and it works fine.  The error page is the same page basically as the login, i just added in the code to show the error message from RADIUS (which doesnt work) but the images do not show up.  Is the error page uploaded to a different directory and i need a different path to the image file?

          1 Reply Last reply Reply Quote 0
          • L
            luke240778
            last edited by

            I need some help.. how can i get back to the original error page?  i uploaded a simple error page that just does not work at all.. and now my CP logins are also not working anymore since i uploaded the error page.

            I dont have a backup so how do i simply delete the error.html that i uploaded so it goes back to the original one?

            1 Reply Last reply Reply Quote 0
            • L
              luke240778
              last edited by

              Any ideas??  I am guessing this must be a know bug as all i did was upload a file called error.html to where it says upload your personalised error page, and now my CP login doesnt work at all.. before it at least threw up the pfsense error page with the radius error message.. nowit does nothing. just refreshes the login page when i click login.

              EDIT:
              I may have just worked out how to do this but want to make sure before i go ahead and do it.  I just looked at a config backup from a week ago, and at one i just backed up now.  In the section <captiveportal>the old one just has an  <htmltext>, but the new one has this and then also has <errtext>so i assume i should be able to: vi /conf/config.xml and remove the <errtext>line ??

              Someone please confirm this so i dont do it and break something.  Thanks in advance.</errtext></errtext></htmltext></captiveportal>

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                Yep,

                That's a way to reset back the 'error' page to the original one.

                Also read this: http://doc.pfsense.org/index.php/How_can_I_reload_the_config_after_manually_editing_config.xml%3F

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • L
                  luke240778
                  last edited by

                  Excellent, thanks for that.  Just did it and all seems to be working.  What i really would like is if there is any documentation on exactly how to upload a customised error page that actually works?  Is anyone at all successful with this?

                  1 Reply Last reply Reply Quote 0
                  • L
                    luke240778
                    last edited by

                    I managed to delete it and get back to working.. but this basically doesnt solve the problem. Doesn't anyone else out tehre have a customsed login and error page that both work ? and the error page show the error message from radius server?  Invalid credentials.. and MAC address invalid and so forth.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.