Hi I am working in a user registration form, the current workflow for the server connect is
Validate data
password hash
Database insert
Setup mailer
Email send
The above works perfectly! However, I am trying to add an account verification step, where the user will receive an email with a validation url and a code they need to add to fully validate their account.
I am able to create the email and the validation url. However, I want the code to be auto generated at the server level, for security reasons. But I do not know how to do it in wappler.
Just be aware that the UUID global produces a new value each time it is used. If you want to be able to use the same value in a database action and an email step you could either:
do a DB query to retrieve it once it was inserted/updated
or
use a Set Value step to assign the UUID and then use that to add to the DB and in the email
if you checkout my new video series I do exactly what you ask. In this module I show you how to use a simple algorithm to generate a random code of any length which can include numbers, letters or special characters.
@Hyperbytes, I am running into some issues when I trying to implement your video. I think the error is when I am trying to split string. I have tried all your steps and that is the only one that returns an error.