mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 05:06:39 +02:00
🐛 Fix unexpected internal error on password recovery request.
This commit is contained in:
parent
dfc938b804
commit
3b0ea9b7fd
2 changed files with 9 additions and 8 deletions
|
@ -187,7 +187,6 @@
|
|||
(db/exec-one! conn [sql:profile-by-email email])))
|
||||
|
||||
|
||||
|
||||
;; --- Mutation: Register if not exists
|
||||
|
||||
(sm/defmutation ::login-or-register
|
||||
|
@ -433,10 +432,11 @@
|
|||
:name (:fullname profile)}))]
|
||||
|
||||
(db/with-atomic [conn db/pool]
|
||||
(let [profile (->> (retrieve-profile-by-email conn email)
|
||||
(create-recovery-token conn))]
|
||||
(send-email-notification conn profile)
|
||||
nil))))
|
||||
(some->> email
|
||||
(retrieve-profile-by-email conn)
|
||||
(create-recovery-token conn)
|
||||
(send-email-notification conn))
|
||||
nil)))
|
||||
|
||||
|
||||
;; --- Mutation: Recover Profile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue