0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix error 500 when requesting a password reset

This commit is contained in:
Andrés Moya 2021-02-08 16:05:13 +01:00 committed by Andrey Antukh
parent 4703f6d5c7
commit 7bd05d63ac

View file

@ -400,7 +400,8 @@
(emails/send! conn emails/password-recovery
{:to (:email profile)
:token (:token profile)
:name (:fullname profile)}))]
:name (:fullname profile)})
nil)]
(db/with-atomic [conn pool]
(when-let [profile (profile/retrieve-profile-data-by-email conn email)]