mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix demo user login issue.
This commit is contained in:
parent
c8102f4bff
commit
ac6c07b771
1 changed files with 8 additions and 4 deletions
|
@ -92,12 +92,16 @@
|
|||
|
||||
profile))
|
||||
|
||||
(def ^:private sql:profile-by-email
|
||||
"select p.* from profile as p
|
||||
where p.email = ?
|
||||
and (p.deleted_at is null or
|
||||
p.deleted_at > now())")
|
||||
|
||||
(defn retrieve-profile-data-by-email
|
||||
[conn email]
|
||||
(try
|
||||
(db/get-by-params conn :profile {:email (str/lower email)
|
||||
:deleted-at nil})
|
||||
(catch Exception _e)))
|
||||
(ex/ignoring
|
||||
(db/exec-one! conn [sql:profile-by-email (str/lower email)])))
|
||||
|
||||
;; --- Attrs Helpers
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue