forked from team-alembic/ash_authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change token to confirm for confirm new user url
- Loading branch information
1 parent
bcf7b1d
commit 3cabfd5
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]"}) | ||
|
@@ -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() | ||
|