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
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.
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:
Awesome! Simply post in the forums using the link below and we'll get you started.