Created
February 14, 2020 17:51
-
-
Save nqthqn/3fb66c83b2ba75a210c20218225cbd3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. index of available content | |
1. user request access to some content | |
a. form submission with email, hidden content_key | |
2. check redis - email registered already? | |
3. generate hash + content_key entry | |
4. email user link example.com/secret/:hash | |
5. user clicks link | |
6. remove hash + content_key entry | |
7. deliver bytes corresponding to content_key (look in hugo /public) | |
8. if user refreshes the /secret:hash page and no entry is found, redirect to index | |
important: hugo static files stay server side, never on CDN. | |
services needed: | |
- lambda | |
- redis | |
- email sender |
I'm not sure if this is the exact plugin but it was something like this one... I've stopped following the wordpress world since I started with Hugo... https://wordpress.org/plugins/public-post-preview/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fascinating! i'd love to hear more... which plugin?
nonce
is the word i am looking for - a 1 time use