Skip to content

Commit

Permalink
Merge pull request #42 from midarrlabs/feature/40-improve-onboarding-…
Browse files Browse the repository at this point in the history
…experience

Feature/40 improve onboarding experience
  • Loading branch information
trueChazza authored Mar 9, 2022
2 parents 96799c7 + 2516b14 commit f50fdcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ config :media_server, MediaServer.Repo,
hostname: System.get_env("DB_HOSTNAME")

config :media_server,
app_name: "Midarr",
app_url: System.get_env("APP_URL"),
app_mailer_from: System.get_env("APP_MAILER_FROM"),
movies_base_url: System.get_env("RADARR_BASE_URL"),
movies_api_key: System.get_env("RADARR_API_KEY"),
series_base_url: System.get_env("SONARR_BASE_URL"),
Expand Down
6 changes: 3 additions & 3 deletions lib/media_server/accounts/user_notifier.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule MediaServer.Accounts.UserNotifier do
email =
new()
|> to(recipient)
|> from({"MyApp", "[email protected]"})
|> from({Application.get_env(:media_server, :app_name), Application.get_env(:media_server, :app_mailer_from)})
|> subject(subject)
|> text_body(body)

Expand Down Expand Up @@ -42,9 +42,9 @@ defmodule MediaServer.Accounts.UserNotifier do
==============================
Hi #{user.email},
Hi #{user.name},
An account has been created for you.
An account has been created for you at #{Application.get_env(:media_server, :app_url)}.
You're account details are:
Expand Down

0 comments on commit f50fdcd

Please sign in to comment.