0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Fix loggin issue when user uses the same email as previously deleted profile.

This commit is contained in:
Andrey Antukh 2021-08-04 10:42:22 +02:00
parent 3435684c87
commit 35ca3ec895

View file

@ -95,7 +95,8 @@
(defn retrieve-profile-data-by-email
[conn email]
(try
(db/get-by-params conn :profile {:email (str/lower email)})
(db/get-by-params conn :profile {:email (str/lower email)
:deleted-at nil})
(catch Exception _e)))
;; --- Attrs Helpers