mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: e2ee password confirm inconsistent
fixes https://github.com/logseq/db-test/issues/681
This commit is contained in:
3
deps/shui/src/logseq/shui/form/password.cljs
vendored
3
deps/shui/src/logseq/shui/form/password.cljs
vendored
@@ -13,7 +13,8 @@
|
|||||||
(form-core/input
|
(form-core/input
|
||||||
(merge
|
(merge
|
||||||
option
|
option
|
||||||
{:type (if visible? "text" "password")}))
|
{:type (or (:type option)
|
||||||
|
(if visible? "text" "password"))}))
|
||||||
(when-not (string/blank? (:value option))
|
(when-not (string/blank? (:value option))
|
||||||
(base-core/button
|
(base-core/button
|
||||||
{:variant :ghost
|
{:variant :ghost
|
||||||
|
|||||||
@@ -47,9 +47,8 @@
|
|||||||
(set-matched! (= password-confirm password))))})
|
(set-matched! (= password-confirm password))))})
|
||||||
|
|
||||||
[:div.flex.flex-col.gap-2
|
[:div.flex.flex-col.gap-2
|
||||||
(shui/input
|
(shui/toggle-password
|
||||||
{:type "password-confirm"
|
{:placeholder "Enter password again"
|
||||||
:placeholder "Enter password again"
|
|
||||||
:value password-confirm
|
:value password-confirm
|
||||||
:on-change (fn [e] (set-password-confirm! (-> e .-target .-value)))
|
:on-change (fn [e] (set-password-confirm! (-> e .-target .-value)))
|
||||||
:on-blur (fn [] (set-matched! (= password-confirm password)))})
|
:on-blur (fn [] (set-matched! (= password-confirm password)))})
|
||||||
|
|||||||
Reference in New Issue
Block a user