Skip to content

Commit

Permalink
Don't ignore email error on user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
geekingfrog authored and StanczakDominik committed Jun 3, 2024
1 parent b2dbd23 commit d3ba30b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/teiserver/common/email_helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ defmodule Teiserver.EmailHelper do
|> Email.put_header("Message-Id", message_id)
|> Email.html_body(html_body)
|> Email.text_body(text_body)
|> Teiserver.Mailer.deliver_now()
|> Teiserver.Mailer.deliver_now(response: true)
end
end
5 changes: 2 additions & 3 deletions lib/teiserver/data/cache_user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ defmodule Teiserver.CacheUser do
:no_verify ->
verify_user(get_user_by_id(user.id))

{:ok, _} ->
{:ok, _, _} ->
:ok
# Logger.error("Email sent, response of #{Kernel.inspect response}")
end
end

Expand Down Expand Up @@ -339,7 +338,7 @@ defmodule Teiserver.CacheUser do
verify_user(get_user_by_id(user.id))
:ok

{:ok, _} ->
{:ok, _, _} ->
:ok
end
end
Expand Down

0 comments on commit d3ba30b

Please sign in to comment.