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

Mobile Login Page

Scheduled Pinned Locked Moved Captive Portal
11 Posts 6 Posters 9.0k 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.
  • D
    davidfrendo
    last edited by Mar 1, 2013, 8:47 AM

    Hi all,

    I am using pfSense 2.0.2 as the corporate captive portal solution with the integrated FreeRADIUS 2 package.

    The solution is working perfectly. Recently, I have updated the captive portal login page in a way to identify the type of device (e.g. phone, tablet and computer) and this works quite well.

    The only issue I am having is that the mobile version even though works and logs user in does not do the redirection to the original page.

    I am hereby attaching the page code and the screenshot of the mobile page after pressing the Authenticate button.

    Many thanks in advance.

    Best regards,

    David
    captiveportal-login-page.php.txt

    1 Reply Last reply Reply Quote 0
    • J
      jonallport
      last edited by Mar 4, 2013, 10:25 AM Mar 4, 2013, 10:23 AM

      Try going up to 2.0.3 pre-release…

      There is a bug in the redirect url handling in 2.0.2 that mangles the URL; the first '/' is dropped in the parameter.  This is not usually a problems for PC(/Mac/*NIX) users as their initial URL is most likely google.com or similar.

      Mobile devices (eg. iOS) will bring up the authentication after connecting to the network and trying to load (in the case of iOS) "http://www.apple.com/library/test/success.html"

      That will get put into the redirect url parameter as  "http://www.apple.comlibrary/test/success.html" - which will fail to load after authentication

      PS. I'm guessing this is the problem, as you haven't added the screenshot to the post!

      1 Reply Last reply Reply Quote 0
      • D
        davidfrendo
        last edited by Mar 4, 2013, 10:44 AM

        Hi,

        Thanks for the reply, much appreciated. Will definitely try that.

        Apologies for missing the screenshot. Uploading one with this post. Basically after hitting Authenticate, the circle in the screenshot appears and while authentication is successful no redirection occurs.

        Many thanks again!

        photo.jpg
        photo.jpg_thumb

        1 Reply Last reply Reply Quote 0
        • T
          topcat
          last edited by Mar 28, 2013, 6:42 PM

          hi have you got the "captiveportal-mobile_detect.php" script file?

          thanks

          1 Reply Last reply Reply Quote 0
          • D
            davidfrendo
            last edited by Apr 1, 2013, 5:20 AM

            Hi,

            Yes, kindly find attached.

            Unfortunately upgrading to 2.0.3-PreRelease didn't solve issue.

            Many thanks in advance.

            captiveportal-mobile_detect.php.txt

            1 Reply Last reply Reply Quote 0
            • E
              Enrica_CH
              last edited by Apr 5, 2013, 11:59 AM

              I have another solution to solve a better visibilty for mobiles.

              Current browsers could interpret the line "@media all and (max-width: 481px)" in the CSS. You define as usual a style sheet. Then you overwrite definitions for a predefined resolution. To simplify you could also hide div containers. You can test this solution with Firefox on your PC. As soon as the browser width is less then 481px it switches suddendly.

              Attached is our solution. Please rename it without the extention .txt.

              captiveportal.html.txt
              captiveportal.css.txt

              1 Reply Last reply Reply Quote 0
              • D
                drupsta
                last edited by Sep 13, 2013, 9:46 AM

                davidfrendo - Any luck in solving your problem? I would also to implement your solution if it worked with you. Thanks

                1 Reply Last reply Reply Quote 0
                • E
                  Enrica_CH
                  last edited by Sep 13, 2013, 10:49 AM

                  Yes I solved it. Within the CSS file I have sections with media tags. What is between that tags overwrites the already defined definitions if medica condition matches.
                  see my example (without Pictures).

                  If you try my attachments, please remove .txt

                  captiveportal.css.txt
                  captiveportal.html.txt

                  1 Reply Last reply Reply Quote 0
                  • C
                    cwilkinson
                    last edited by Sep 13, 2013, 12:47 PM

                    Hey, would you be willing to share the rest of this/image files? Looking at modifying this for personal use if you will allow it.

                    1 Reply Last reply Reply Quote 0
                    • D
                      drupsta
                      last edited by Sep 13, 2013, 2:49 PM

                      I have manged to fix the davidfrendo problem by adding data-ajax="false" as attribute to the form in the mobile page section. I have attached a copy of the file here for those who want to use it.

                      captiveportal-login-page.php.txt

                      1 Reply Last reply Reply Quote 0
                      • E
                        Enrica_CH
                        last edited by Sep 13, 2013, 3:51 PM

                        Here ist the ZIP file with all images for my proposal. Please remove the .txt

                        captiveportal-images.zip.txt

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