Send approval pending email during registration
This commit is contained in:
parent
c69b205409
commit
28005563f0
3 changed files with 29 additions and 1 deletions
|
|
@ -779,7 +779,11 @@ defmodule Pleroma.User do
|
|||
end
|
||||
|
||||
def post_register_action(%User{approval_pending: true} = user) do
|
||||
# TODO: Send approval explanation email
|
||||
# Send approval pending email
|
||||
user
|
||||
|> Pleroma.Emails.UserEmail.approval_pending_email()
|
||||
|> Pleroma.Emails.Mailer.deliver_async()
|
||||
|
||||
{:ok, user}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue