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

    [SOLVED]Case Sensitive in CP with local database

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 1.3k 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.
    • _neok_
      _neok
      last edited by

      Hello everyone, I have searched without results a solution at the time.
      I need convert the string "$user" to lowercase or uppercase independent of how users write it.
      I use the captive portal service and this gives me error if the user field is misspelled in uppercase or lowercase.

      I appreciate any help greatly.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        http://php.net/manual/en/function.strtolower.php

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Use some javascript to change it in the HTML on submission, it won't require any changes to pfSense code, just the portal page you upload.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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