Handlebars Helpers
Random Pin
Generates numeric PINs during Handlebars substitution. Useful for verification codes, short access tokens, user prompts, and temporary identifiers.
Uses
- Use to generate a random numerical pin of custom length
- Use for an OTP system to send via SMS or email
- Use for a random password generator
- Use as a simple random password generator to encrypt simple (non-sensitive) data (together with encrypt and decrypt helpers)
Usage
Helper name : randompin
eg.
{{#randompin 4}}{{/randompin}}
Examples
Simple 4 digit PIN
Example using a savedata task
Substituted definition