Skip to content
Snippets Groups Projects
Commit 71fdb392 authored by Cam Saul's avatar Cam Saul
Browse files

hiccup is nice for HTML templating <3

parent 62528ac1
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
[com.mattbertolini/liquibase-slf4j "1.2.1"]
[compojure "1.3.2"] ; HTTP Routing library built on Ring
[environ "1.0.0"] ; easy environment management
[hiccup "1.0.5"] ; HTML templating
[korma "0.4.0"] ; SQL lib
[log4j/log4j "1.2.17"
:exclusions [javax.mail/mail
......
......@@ -3,6 +3,7 @@
(:require [cemerick.friend.credentials :as creds]
[clojure.tools.logging :as log]
[compojure.core :refer [defroutes POST DELETE]]
[hiccup.core :refer [html]]
[korma.core :as korma]
[metabase.api.common :refer :all]
[metabase.db :refer :all]
......@@ -45,9 +46,9 @@
(check-404 user-id)
(upd User user-id :reset_token reset-token :reset_triggered (System/currentTimeMillis))
(email/send-message "Metabase Password Reset" {email user-name}
:html (format "Hey %s, sorry you forgot your password :'(<br /><br /><a href=\"%s\">Click here to reset it!</a> <3"
user-name
password-reset-url))
:html (html [:p "Hey, " user-name ", sorry you forgot your password :'(."]
[:p [:a {:href password-reset-url} "Click here to reset it!"]]
[:p "<3"]))
(log/info password-reset-url)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment