From b1d442ea8829f697c6dd5716e050247a25f21916 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 26 Feb 2023 00:34:11 -0500 Subject: [PATCH] remove user notifier --- lib/lokal/accounts/user_notifier.ex | 77 ----------------------------- 1 file changed, 77 deletions(-) delete mode 100644 lib/lokal/accounts/user_notifier.ex diff --git a/lib/lokal/accounts/user_notifier.ex b/lib/lokal/accounts/user_notifier.ex deleted file mode 100644 index 10a9c6d..0000000 --- a/lib/lokal/accounts/user_notifier.ex +++ /dev/null @@ -1,77 +0,0 @@ -defmodule Lokal.Accounts.UserNotifier do - @moduledoc """ - Contains templates and messages for user messages - """ - - # For simplicity, this module simply logs messages to the terminal. - # You should replace it by a proper email or notification tool, such as: - # - # * Swoosh - https://hexdocs.pm/swoosh - # * Bamboo - https://hexdocs.pm/bamboo - # - defp deliver(to, body) do - require Logger - Logger.debug(body) - {:ok, %{to: to, body: body}} - end - - @doc """ - Deliver instructions to confirm account. - """ - def deliver_confirmation_instructions(user, url) do - deliver(user.email, """ - - ============================== - - Hi #{user.email}, - - You can confirm your account by visiting the URL below: - - #{url} - - If you didn't create an account with us, please ignore this. - - ============================== - """) - end - - @doc """ - Deliver instructions to reset a user password. - """ - def deliver_reset_password_instructions(user, url) do - deliver(user.email, """ - - ============================== - - Hi #{user.email}, - - You can reset your password by visiting the URL below: - - #{url} - - If you didn't request this change, please ignore this. - - ============================== - """) - end - - @doc """ - Deliver instructions to update a user email. - """ - def deliver_update_email_instructions(user, url) do - deliver(user.email, """ - - ============================== - - Hi #{user.email}, - - You can change your email by visiting the URL below: - - #{url} - - If you didn't request this change, please ignore this. - - ============================== - """) - end -end