diff --git a/backend/src/app/loggers/audit.clj b/backend/src/app/loggers/audit.clj index 56608e648e..37429f462c 100644 --- a/backend/src/app/loggers/audit.clj +++ b/backend/src/app/loggers/audit.clj @@ -116,9 +116,10 @@ (db/inet ip-addr) (db/tjson (:props event)) (db/tjson (d/without-nils (:context event)))])) - events (us/conform ::events events) - rows (into [] prepare-xf events)] - (db/insert-multi! pool :audit-log columns rows)) + events (us/conform ::events events)] + (when (seq events) + (->> (into [] prepare-xf events) + (db/insert-multi! pool :audit-log columns)))) (catch Throwable e (let [xdata (ex-data e)] (if (= :spec-validation (:code xdata)) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index b5f3b2a1d6..0470f7acfa 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -215,7 +215,7 @@ :task :audit-log-archive}) (when (contains? cf/flags :audit-log-gc) - {:cron #app/cron "0 0 * * * ?" ;; every 1h + {:cron #app/cron "0 0 0 * * ?" ;; daily :task :audit-log-gc}) (when (or (contains? cf/flags :telemetry) diff --git a/frontend/src/app/main/ui/auth.cljs b/frontend/src/app/main/ui/auth.cljs index 5cf1a715bd..9c79ed2ddb 100644 --- a/frontend/src/app/main/ui/auth.cljs +++ b/frontend/src/app/main/ui/auth.cljs @@ -25,7 +25,7 @@ [:div.auth [:section.auth-sidebar - [:a.logo {:href "https://penpot.app"} i/logo] + [:a.logo {:href "#/"} i/logo] [:span.tagline (tr "auth.sidebar-tagline")]] [:section.auth-content diff --git a/frontend/src/app/main/ui/auth/register.cljs b/frontend/src/app/main/ui/auth/register.cljs index e690b57d8b..f10181e77e 100644 --- a/frontend/src/app/main/ui/auth/register.cljs +++ b/frontend/src/app/main/ui/auth/register.cljs @@ -184,12 +184,8 @@ (mf/defc register-validate-form [{:keys [params] :as props}] - (let [initial (mf/use-memo - (mf/deps params) - (fn [] - (assoc params :accept-newsletter-subscription false))) - form (fm/use-form :spec ::register-validate-form - :initial initial) + (let [form (fm/use-form :spec ::register-validate-form + :initial params) submitted? (mf/use-state false) on-submit @@ -210,18 +206,19 @@ :tab-index "1" :label (tr "auth.fullname") :type "text"}]] + [:div.fields-row [:& fm/input {:name :accept-terms-and-privacy :class "check-primary" :label (tr "auth.terms-privacy-agreement") :type "checkbox"}]] - (when (contains? @cf/flags :newsletter-registration-check) - [:div.fields-row - [:& fm/input {:name :accept-newsletter-subscription - :class "check-primary" - :label (tr "auth.newsletter-subscription") - :type "checkbox"}]]) + ;; (when (contains? @cf/flags :newsletter-registration-check) + ;; [:div.fields-row + ;; [:& fm/input {:name :accept-newsletter-subscription + ;; :class "check-primary" + ;; :label (tr "auth.newsletter-subscription") + ;; :type "checkbox"}]]) [:& fm/submit-button {:label (tr "auth.register-submit")