[#114] Added UserInviteToken creation, adjusted invitation email link to include it.
This commit is contained in:
parent
cc83d7ffe7
commit
3cbf16a5fe
3 changed files with 13 additions and 8 deletions
|
|
@ -38,12 +38,12 @@ defmodule Pleroma.UserEmail do
|
|||
|> html_body(html_body)
|
||||
end
|
||||
|
||||
def user_invitation_email(user, to_email, to_name \\ nil) do
|
||||
def user_invitation_email(user, user_invite_token, to_email, to_name \\ nil) do
|
||||
registration_url =
|
||||
Router.Helpers.redirect_url(
|
||||
Endpoint,
|
||||
:registration_page,
|
||||
""
|
||||
user_invite_token.token
|
||||
)
|
||||
|
||||
html_body = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue