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
4 changes: 2 additions & 2 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
:theme-rise
{:lib 'systems.bread/bread-theme-rise
:aliases [:theme-rise]
:src-dirs ["cms/themes/rise" "resources/rise"]}
:src-dirs ["cms/themes/rise/src" "cms/themes/rise/resources"]}

;; TODO CRUST

Expand All @@ -91,7 +91,7 @@
(let [{:keys [aliases lib src-dirs]} (get libs (:lib opts :core))
jar-file (jar-path lib patch-version)]
;; Prevent pollution from previous builds.
(b/delete {:path class-dir})
(clean nil)
(b/write-pom {:class-dir class-dir
:lib lib
:version patch-version
Expand Down
6 changes: 3 additions & 3 deletions cms/themes/rise/src/systems/bread/alpha/cms/theme/rise.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
[:html {:lang lang :dir dir}
[:head
[:meta {:content-type :utf-8}]
[:meta {:name :viewport :content "width=device-width, initial-scale=1"}]
(hook ::theme/html.title
[:title (theme/title title (:site/name config))]
title)
Expand Down Expand Up @@ -229,7 +230,7 @@

(defc ResetPasswordPage
[{:as data
:keys [config hook i18n session dir totp ring/anti-forgery-token-field]
:keys [config hook i18n session dir ring/anti-forgery-token-field]
:auth/keys [result]}]
{:extends Page
:doc
Expand All @@ -246,8 +247,7 @@
:description
"A valid code must be present in the query string."
:args ({})}]}
(let [{:keys [totp-key issuer]} totp
user (or (:user session) (:auth/user session))
(let [user (or (:user session) (:auth/user session))
error? (false? (:valid result))]
{:title (:auth/reset-password i18n)
:content
Expand Down
5 changes: 3 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@

:auth
{:extra-paths ["plugins/auth"]
:extra-deps {buddy/buddy-hashers {:mvn/version "2.0.167"}
one-time/one-time {:mvn/version "0.8.0"}}}
:extra-deps {buddy/buddy-hashers {:mvn/version "2.0.167"}
crypto-random/crypto-random {:mvn/version "1.2.1"}
one-time/one-time {:mvn/version "0.8.0"}}}

:bidi
{:extra-paths ["plugins/bidi"]
Expand Down
10 changes: 5 additions & 5 deletions plugins/auth/systems/bread/alpha/plugin/account.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@
:action/description "Merge strings for account page into global i18n strings."
:strings (i18n/read-strings "account.i18n.edn")}]}
:config
{:account/account-uri account-uri
:account/timezone-options timezone-options
:account/html.account.header html-account-header
:account/html.account.sections html-account-sections
:account/html.account.form html-account-form}})
#:account{:account-uri account-uri
:timezone-options timezone-options
:html.account.header html-account-header
:html.account.sections html-account-sections
:html.account.form html-account-form}})
1 change: 0 additions & 1 deletion plugins/theme/systems/bread/alpha/cms/theme.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[markdown-to-hiccup.core :as md2h]
[rum.core :as rum]

[systems.bread.alpha.core :as bread]
[systems.bread.alpha.component :refer [defc] :as component]))

(defn title [& strs]
Expand Down
Loading