fix: e2ee password confirm inconsistent

fixes https://github.com/logseq/db-test/issues/681
This commit is contained in:
Tienson Qin
2025-12-24 15:44:04 +08:00
parent 5132eddd95
commit f927ae8b72
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,8 @@
(form-core/input
(merge
option
{:type (if visible? "text" "password")}))
{:type (or (:type option)
(if visible? "text" "password"))}))
(when-not (string/blank? (:value option))
(base-core/button
{:variant :ghost

View File

@@ -47,9 +47,8 @@
(set-matched! (= password-confirm password))))})
[:div.flex.flex-col.gap-2
(shui/input
{:type "password-confirm"
:placeholder "Enter password again"
(shui/toggle-password
{:placeholder "Enter password again"
:value password-confirm
:on-change (fn [e] (set-password-confirm! (-> e .-target .-value)))
:on-blur (fn [] (set-matched! (= password-confirm password)))})