Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conf/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ if email_expiry < 1,
config :zenflows, Zenflows.Email,
email_from: fetch_env!("EMAIL_ADDR"),
api_key: fetch_env!("EMAIL_KEY"),
expiry: email_expiry
expiry: email_expiry,
email_uri: get_env_url.("EMAIL_URI", "http://localhost:3000/email/verify/")
1 change: 1 addition & 0 deletions src/zenflows/vf/person/domain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def request_email_verification(person, template) do
:interfacer_staging -> "https://interfacer-gui-staging.dyne.org/email/verify/"
:interfacer_testing -> "http://localhost:3000/email/verify/"
:interfacer_debugging -> "http://localhost:3000/email/verify/"
:interfacer_self -> Application.fetch_env(:zenflows, Zenflows.Email)[:email_uri]
end
Email.Domain.request_email_verification(person, url)
end
Expand Down
1 change: 1 addition & 0 deletions src/zenflows/vf/person/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enum :email_template do
value :interfacer_staging
value :interfacer_testing
value :interfacer_debugging
value :interfacer_self
end

@desc "A natural person."
Expand Down
Loading