aboutsummaryrefslogtreecommitdiff
path: root/src/server/View
diff options
context:
space:
mode:
authorJoris2016-03-26 12:44:27 +0100
committerJoris2016-03-26 12:44:27 +0100
commit59c694b0e81deb30ec4e50d5d142b5eda645a27e (patch)
tree175850ddfe9ace1f50ab6ec11edff094b27da339 /src/server/View
parenta11ad41b52ed3682d33382f2a378bf3294d688b2 (diff)
Move no-reply mail from messages to conf
Diffstat (limited to 'src/server/View')
-rw-r--r--src/server/View/Mail/SignIn.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/View/Mail/SignIn.hs b/src/server/View/Mail/SignIn.hs
index dca261d..f776ddd 100644
--- a/src/server/View/Mail/SignIn.hs
+++ b/src/server/View/Mail/SignIn.hs
@@ -13,10 +13,13 @@ import qualified Model.Mail as M
import Model.Message.Key
import Model.Message
-getMail :: User -> Text -> [Text] -> M.Mail
-getMail user url to =
+import Conf (Conf)
+import qualified Conf as Conf
+
+getMail :: Conf -> User -> Text -> [Text] -> M.Mail
+getMail conf user url to =
M.Mail
- { M.from = (getMessage NoReplyMail)
+ { M.from = Conf.noReplyMail conf
, M.to = to
, M.subject = (getMessage SignInMailTitle)
, M.plainBody = plainBody user url