diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 893332c..dcf027d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,4 +101,14 @@ database in a Docker container. Use [MJML Editor][mjml] and then render into HTML. Make sure variables use Handlebars syntax (e.g. `{{name}}`). +For local testing you can use something like: + +```bash +curl -s http://localhost:1080/email | grep -o -E "This is your verification code.{0,7}" | tail -1 | sed 's/^.*://' | awk '{$1=$1;print} +``` + +To get the very last email's verification code. + +> **Warning** Note that changes on email content will break this script + [mjml]: https://mjml.io/try-it-live/99k8regCo_ diff --git a/crates/core/src/mail/templates/verification_code.hbs b/crates/core/src/mail/templates/verification_code.hbs index 808f157..5e710d6 100644 --- a/crates/core/src/mail/templates/verification_code.hbs +++ b/crates/core/src/mail/templates/verification_code.hbs @@ -102,7 +102,7 @@ -
This is your verification code {{code}} please don't share it with anyone!
+
This is your verification code: {{code}} please don't share it with anyone!