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

    Daily changing login code

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 1.4k 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.
    • G
      gemmiu
      last edited by

      Hello,

      is it possible to change the login password of an cp user everyday automatically?

      Thanks.

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

        Hi.

        I understand that you want: random passwords every 24 hours for portal access.
        Vouchers ? Local users ? Radius ?

        I understand that 'PHP' is difficult for you ?
        If not: several lines off code (start looking here: http://192.168.1.1/system_usermanager.php ) and you're nearly done.
        Use a package like 'cron' (System => Packages) to run your own script that sets new passwords - and send them to you - or other people by mail (pfSense has mailing capabilities).

        Or, search your answer differently !
        What about generating vouchers that last 24 hours.
        Now, mail them away to your user on an automatic way (no need for pfSense for that).

        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
        • G
          gemmiu
          last edited by

          Hi,

          thank you for this answere.

          Yes, I want just one "random" password every 24h. Every user will use the same username and password.

          The password should not be really random at all. Maybe something calculated out of the date.

          So I don't need the mailing capatabilities.

          Vouchers for 24h won't be a good solution for my purpose.

          It's for an exhibition, where users can access the internet over a captive portal only for the current day.

          And yes 'php' is difficult for me :(

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