mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-23 13:44:32 +01:00
Adds missing doc comment.
This commit is contained in:
parent
71838fbc50
commit
4ce618f3a8
1 changed files with 9 additions and 0 deletions
|
@ -479,6 +479,15 @@ defmodule Philomena.Users do
|
|||
UserNotifier.deliver_reset_password_instructions(user, reset_password_url_fun.(encoded_token))
|
||||
end
|
||||
|
||||
@doc ~S"""
|
||||
Delivers the reactivate account email to the given user.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> deliver_user_reactivation_instructions(user, &url(~p"/reactivations/#{&1}"))
|
||||
{:ok, %{to: ..., body: ...}}
|
||||
|
||||
"""
|
||||
def deliver_user_reactivation_instructions(%User{} = user, reactivation_url_fun)
|
||||
when is_function(reactivation_url_fun, 1) do
|
||||
{encoded_token, user_token} = UserToken.build_email_token(user, "reactivate")
|
||||
|
|
Loading…
Reference in a new issue