accounts-password-doichain - how to blockchain your Double-Opt-ins
Description
extends accounts-password and sends account creation emails instead over smtp but over the Doichain blockchain as a SOI (Single-Opt-In transaction)
This module needs a running both a Doichain Node and Doichain dApp in order work correctly.
Usage:
- Setup Doichain Node and Doichain dApp as described here: https://github.com/Doichain/dapp
- Create a Meteor project
meteor create my-doichain-project; cd my-doichain-project
- Execute
meteor add accounts-password accounts-ui doichain:accounts-password-doichain
- Run project
meteor
- Add
{{> loginButtons}}
to your template. - Configure URL and credentials of your (Testnet) Doichain dApp in settings.json like so:
1{ 2 "app": { 3 "host": "localhost", 4 "port": "81", 5 "ssl": false 6 }, 7 "doichain": { 8 "dAppUsername": "admin", 9 "dAppPassword": "password" 10 } 11}
or use a userId:token pair as invented by acccounts-password:
1{ 2 "doichain": { 3 "dappLogin": {"userId": "xyz", "authToken": "bal" } 4 } 5}
- if you run your dapp on a non-public-ip forward your local port a remote server
ssh -R 4000:localhost:81 your@your-remote-ssh-server
- DON'T FORGET to add CAPTCHA
since your Doicoi wallet will be empty very quickly when you get bot visitors. https://github.com/meteor-useraccounts/core/blob/acded6633c6db153857b7dd244fd022101c509ce/Guide.md#reCaptcha-setup