Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send "Verify your email address" Email #62

Closed
nelsonic opened this issue May 1, 2020 · 2 comments
Closed

Send "Verify your email address" Email #62

nelsonic opened this issue May 1, 2020 · 2 comments
Labels
enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented May 1, 2020

Now is when all the hard work setting up the Email service #39 finally pays off!

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies labels May 1, 2020
@nelsonic
Copy link
Member Author

nelsonic commented May 2, 2020

Example of verification email:
image

nelsonic added a commit to dwyl/aws-ses-lambda that referenced this issue May 2, 2020
nelsonic added a commit to dwyl/aws-ses-lambda that referenced this issue May 2, 2020
nelsonic added a commit to dwyl/aws-ses-lambda that referenced this issue May 2, 2020
@nelsonic
Copy link
Member Author

Verify email is sent with a verification link:
image

The code that generates the verification URL is:

def make_verify_link(conn, person, state) do
AuthPlug.Helpers.get_baseurl_from_conn(conn) <>
"/auth/verify?id=" <>
AuthWeb.ApikeyController.encrypt_encode(person.id) <>
"&referer=" <> state
end

It uses AuthPlug.Helpers.get_baseurl_from_conn/1 which gets the Base URL from conn 😉
(don't you love an obvious sounding helper function?)

Closing as this is working. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

1 participant