Skip to content

Commit

Permalink
Change token to confirm for confirm new user url
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-klasson committed Jul 14, 2024
1 parent bcf7b1d commit 3cabfd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/tutorials/confirmation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule MyApp.NewUserConfirmationSender do
use AshAuthentication.Sender
import Swoosh.Email

def send(user, token, _opts) do
def send(user, confirm, _opts) do
new()
|> to(to_string(user.email))
|> from({"MyApp Admin", "[email protected]"})
Expand All @@ -82,7 +82,7 @@ defmodule MyApp.NewUserConfirmationSender do
If it was you, then please click the link below to confirm your identity. If you did not initiate this request then please ignore this email.
</p>
<p>
<a href="https://myapp.inc/auth/user/confirm_new_user?#{URI.encode_query(token: token)}">Click here to confirm your account</a>
<a href="https://myapp.inc/auth/user/confirm_new_user?#{URI.encode_query(confirm: confirm)}">Click here to confirm your account</a>
</p>
""")
|> MyApp.Mailer.deliver()
Expand Down

0 comments on commit 3cabfd5

Please sign in to comment.