Navigation

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

    Captive Portal Clients change password by themselves

    Captive Portal
    3
    5
    4102
    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.
    • O
      OttNorml last edited by

      Hey guys,

      Is there a way by which the users can change their passwords by themselves on a self-created web page, similar to the monowall? (http://forum.m0n0.ch/index.php/topic,5007.msg15368.html#msg15368)

      Best regards
      OttNorml

      1 Reply Last reply Reply Quote 0
      • B
        bardelot last edited by

        You can create your own status page and allow the users to change their passwords using code similar to this:

        require_once("auth.inc");
        require_once("captiveportal.inc");
        
        $userent = getUserEntry($username);
        local_user_set_password($userent, $newpassword);
        
        1 Reply Last reply Reply Quote 0
        • E
          eri-- last edited by

          On 2.0 they can change the passwords from the pfSense webgui.

          1 Reply Last reply Reply Quote 0
          • O
            OttNorml last edited by

            That's too bad!!! :(

            Why is this feature missing/ why was it removed?

            1 Reply Last reply Reply Quote 0
            • B
              bardelot last edited by

              @OttNorml:

              That's too bad!!! :(

              Why is this feature missing/ why was it removed?

              I guess you are using 2.1 then? Actually ermal wasn't saying that the feature is only available in 2.0, it is available since 2.0.

              You just have both options, either building your own fancy page where the users can change their password using the code that I showed or by using the built-in feature that ermal mentioned. Just create a new group in the User Manager and add the members that should be able to change their password. Save it and click on Edit again. Now you can assign privileges, the one you're looking for is "WebCfg - System: User Password Manager page". - You could also directly set the user's privilege but using a group is useful when having more than a handful of accounts.

              Your users can now use the normal pfSense webgui and are redirected to the change password site (if it is the only privilege they have).

              1 Reply Last reply Reply Quote 0
              • First post
                Last post