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

Incorrect credentials specified

Scheduled Pinned Locked Moved Captive Portal
10 Posts 2 Posters 1.1k Views
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.
  • T
    TheCableGuy96
    last edited by Mar 16, 2023, 12:21 AM

    I've been working on Captive Portal for the last few days and happy that it's 99% there now. My only issue is that it's coming up when you load the page as though you have logged in incorrectly before entering your login credentials.

    Please see the attached screenshots showing $Incorrect". It also does this with the default page saying "Incorrect credentials specified" so it's not the page at fault, the custom one just gives a different error as I think it's programmed to say something different or call the error in another way.

    The login still works, so it's just an annoyance I'm trying to get to the bottom of and make it look nice.

    Does anyone know why it's doing this? It does it on both mobile and PC.

    Thanks in advance.

    1.jpg 2.jpg

    G 1 Reply Last reply Mar 16, 2023, 9:55 AM Reply Quote 0
    • G
      Gertjan @TheCableGuy96
      last edited by Mar 16, 2023, 9:55 AM

      @dwren78

      Fast solution :

      Remove this check :

      00e5507c-53a2-4873-aeec-3f2681f51f61-image.png

      and the two default - build in - login pages are used.

      😊

      The second login page is nearly identical to the first one.
      It has one line more :
      It looks like

      				<p style="color:red;"><b>$PORTAL_MESSAGE$.</b></p>
      

      The PHP string $PORTAL_MESSAGE$(actually a place holder) will be used if something went wrong during the initial login.
      The second page, also called error login page :

      def812d9-6e0d-4d59-8314-fda3825b0e93-image.png

      gets shown. It does the same thing as the initial login page, but shows also a message to the user. This message can be anything, and is normally showing : "wrong user / password"

      Btw : $Incorrect$ is not part of pfSense. It was you writing that.
      pfSense can't replace it with something meaningful as it doesn't know what to do with $Incorrect$.
      So, you're right, ^$Incorrect is incorrect ;)

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

      T 1 Reply Last reply Mar 16, 2023, 12:12 PM Reply Quote 0
      • T
        TheCableGuy96 @Gertjan
        last edited by Mar 16, 2023, 12:12 PM

        @gertjan Hey, thank you for replying, it's really driving me mad this.

        Firstly, that section is already removed. That first screenshot above with the blue background and the error is when using the default login page.

        I'm no coder, I was given the second page as a test. The people who made it said they don't have the same issue I do.

        I'm not really sure what you are telling me to try with the second solution but if possible I'd be happy to just get the default page working without the error.

        T G 2 Replies Last reply Mar 16, 2023, 12:37 PM Reply Quote 0
        • T
          TheCableGuy96 @TheCableGuy96
          last edited by Mar 16, 2023, 12:37 PM

          I think im getting somewhere with it now

          Its something to do with the RADIUS server, when I turn that off it doesn't happen.

          Problem is that it asks for 2 logins without it.

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan @TheCableGuy96
            last edited by Mar 16, 2023, 1:35 PM

            @dwren78 said in Incorrect credentials specified:

            I'm no coder, I was given the second page as a test. The people who made it said they don't have the same issue I do.

            At least you know now where to get support ;)

            @dwren78 said in Incorrect credentials specified:

            Problem is that it asks for 2 logins without it.

            Check :
            a6b8b8d4-af96-4f5c-82e9-10f79de2b687-image.png

            You've only selected the authorisation service in the first block.
            I'm using radius (the pfSense package) also, and works fine for me.

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

            T 1 Reply Last reply Mar 17, 2023, 8:41 AM Reply Quote 0
            • T
              TheCableGuy96 @Gertjan
              last edited by Mar 17, 2023, 8:41 AM

              @gertjan That's done it! It's now working perfect.

              I've no idea why you would need 2 usernames and passwords to login but i've disabled the second one and it's working perfectly now.

              Thanks for your help pal!

              G 1 Reply Last reply Mar 17, 2023, 8:43 AM Reply Quote 0
              • G
                Gertjan @TheCableGuy96
                last edited by Mar 17, 2023, 8:43 AM

                @dwren78 said in Incorrect credentials specified:

                I've no idea why you would need 2 usernames and passwords to login but i've disabled the second one ...

                Keep in mind that if the first fails, the second one is showing.
                So : why did the first one fail ?

                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
                • T
                  TheCableGuy96
                  last edited by Mar 17, 2023, 9:06 AM

                  It was something to do with RADIUS checking the mac address.

                  So when I connected the mac address didn't match so was giving an error instantly.

                  It's just something I enabled by mistake.

                  Why are there options for dual logins? I don't get that.

                  G 1 Reply Last reply Mar 17, 2023, 9:16 AM Reply Quote 0
                  • G
                    Gertjan @TheCableGuy96
                    last edited by Mar 17, 2023, 9:16 AM

                    @dwren78 said in Incorrect credentials specified:

                    for dual logins?

                    'Radius' could be the local pfSense freeradius package, or some other Radius server somewhere on a LAN, or LDAP, or whatever.
                    If that authentication source doesn't work, there will not be a "refuse" but a time out. A plan B exists, so you can use another source, like the pfSense local user manager, as that one will surely work, as pfSense user auth will work because it showed the login page in the first place.

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

                    T 1 Reply Last reply Mar 17, 2023, 9:37 AM Reply Quote 0
                    • T
                      TheCableGuy96 @Gertjan
                      last edited by Mar 17, 2023, 9:37 AM

                      @gertjan Ahh I see, so it's not a secondary login, it's a backup login.

                      Thanks again for the help.

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received