mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 13:06:11 +02:00
🚧 More work on register/recovery refactor.
This commit is contained in:
parent
9e68041326
commit
6165a49c10
10 changed files with 27 additions and 28 deletions
|
@ -8,5 +8,5 @@
|
|||
|
||||
(goog-define url "http://127.0.0.1:6060/api")
|
||||
(goog-define viewurl "/view/index.html")
|
||||
(goog-define isdemo false)
|
||||
(goog-define demo-warning false)
|
||||
(goog-define default-language "en")
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
[_]
|
||||
[:div.message-inline
|
||||
[:p
|
||||
[:strong "WARNING: "] "this is a " [:strong "demo"] " service."
|
||||
[:br]
|
||||
[:strong "DO NOT USE"] " for real work, " [:br]
|
||||
[:strong "WARNING: "]
|
||||
"This is a " [:strong "demo"] " service, "
|
||||
[:strong "DO NOT USE"] " for real work, "
|
||||
" the projects will be periodicaly wiped."]])
|
||||
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
(let [{:keys [data] :as form} (fm/use-form ::login-form {})]
|
||||
[:form {:on-submit #(on-submit % form)}
|
||||
[:div.login-content
|
||||
(when cfg/isdemo
|
||||
(when cfg/demo-warning
|
||||
[:& demo-warning])
|
||||
|
||||
[:input.input-text
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
[]
|
||||
(let [{:keys [data] :as form} (fm/use-form ::recovery-form {})
|
||||
tr (i18n/use-translations)
|
||||
|
||||
on-success
|
||||
(fn []
|
||||
(st/emit! (um/info (tr "profile.recovery.password-changed"))
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
tr (i18n/use-translations)
|
||||
on-success
|
||||
(fn []
|
||||
(st/emit! (um/info (tr "profile.recovery.recovery-token-sent"))))
|
||||
(st/emit! (um/info (tr "profile.recovery.recovery-token-sent"))
|
||||
(rt/nav :profile-recovery)))
|
||||
|
||||
on-submit
|
||||
(fn [event]
|
||||
(dom/prevent-default event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue