implemented bamboo mailer, satisfying tests
This commit is contained in:
parent
613ab2c80a
commit
370ac77cfd
9 changed files with 57 additions and 19 deletions
lib/bones73k_web/controllers
|
@ -13,7 +13,7 @@ defmodule Bones73kWeb.UserRegistrationController do
|
|||
def create(conn, %{"user" => user_params}) do
|
||||
case Accounts.register_user(user_params) do
|
||||
{:ok, user} ->
|
||||
{:ok, _} =
|
||||
%Bamboo.Email{} =
|
||||
Accounts.deliver_user_confirmation_instructions(
|
||||
user,
|
||||
&Routes.user_confirmation_url(conn, :confirm, &1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue