DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to reuse password reset token in form

Sort:
You are not authorized to post a reply.





New Around Here





    Hi,

    I've a custom form with this workflow

    1. User insert his email and other data

    2. User click submit button and receive an email with a "link token" to confirm the request 1.

    3. User click on "link token" in email and validate the request. Now Admin can elaborate (approve/disapprove/request more info) the request

     

    How can implement the "token"? What is the best way? It's very similar to password reset token

     

    Thanks,

    progmr






    Veteran Member





      Typically you would just utilize a GUID for the token, but there are many different ways to approach it depending on security considerations, etc.

      David Poindexter


      Creator:







      Senior Member





        Posted By David Poindexter on 5/2/2024 8:01 AM
        Typically you would just utilize a GUID for the token, but there are many different ways to approach it depending on security considerations, etc.

        I agree with David on this one... The world is your oyster and while a GUID would be great to start with, I'd actually suggest taking that a step further, depending on how much security you need to have built in.  It can be easy to dig yourself into a rabbit hole here, though.  

        At the core of this, you'll need to have and maintain a data table that contains the tokens you wish to validate against.  This table needs to be well-maintained, though.  For example, as tokens are used and/or become stale, they should be automatically deleted (for lots of reasons).  Then, wrap your DAL around the logic required to populate and maintain this table.  

         

         

        You are not authorized to post a reply.

        These Forums are dedicated to the discussion of DNN Platform.

        For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

        1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
        2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
        3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
        4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
        5. No Flaming or Trolling.
        6. No Profanity, Racism, or Prejudice.
        7. Site Moderators have the final word on approving / removing a thread or post or comment.
        8. English language posting only, please.

        Would you like to help us?

        Awesome! Simply post in the forums using the link below and we'll get you started.

        Get Involved