From 8ae05ff7b61bd22b4a5080e3ca6091a6aa65dd56 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 4 Apr 2022 23:46:42 +0200 Subject: [PATCH] :bug: Fix issue with password persistence --- CHANGES.md | 1 + backend/src/app/rpc/mutations/profile.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a159aa457..799ca7e3f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -91,6 +91,7 @@ - Fix issue with shift+select to deselect shapes [Taiga #3154](https://tree.taiga.io/project/penpot/issue/3154) - Fix issue with drag-select shapes [Taiga #3165](https://tree.taiga.io/project/penpot/issue/3165) +- Fix issue on password persistence after registration process on private instances ## 1.12.2-beta diff --git a/backend/src/app/rpc/mutations/profile.clj b/backend/src/app/rpc/mutations/profile.clj index 855a6ef32..bd4179edb 100644 --- a/backend/src/app/rpc/mutations/profile.clj +++ b/backend/src/app/rpc/mutations/profile.clj @@ -130,6 +130,7 @@ :hint "you can't use your email as password")) (let [params {:email (:email params) + :password (:password params) :invitation-token (:invitation-token params) :backend "penpot" :iss :prepared-register @@ -156,7 +157,6 @@ (let [claims (tokens :verify {:token token :iss :prepared-register}) params (merge params claims)] (check-profile-existence! conn params) - (let [is-active (or (:is-active params) (contains? cf/flags :insecure-register)) profile (->> (assoc params :is-active is-active)