I would like to send a link (preferably automatically via contact form) to the user with an expiring download link. I’m kind of lost on how I could do this in Kirby… Maybe with a guest user?
I created a form, where the user is required to fill in his email adress. The controller generates a random ID with uniqid() (random enough in that context, I guess)
The ID will also be sent in form as a link to entered email adress: www.example.com/download/{id} (in my case I made a route to get rid of ugly get parameters)
The download page checks if the ID exists and if it’s still valid. If both is valid it sends the pdf file as an attachment. If not, it redirects to the form and throws an error.