mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 12:26:10 +02:00
🐛 Fix issues on profile deletion procedure
This commit is contained in:
parent
c534a40923
commit
6e28bb9df8
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@
|
||||||
(when-not (check-password profile password)
|
(when-not (check-password profile password)
|
||||||
(ex/raise :type :validation
|
(ex/raise :type :validation
|
||||||
:code :wrong-credentials))
|
:code :wrong-credentials))
|
||||||
|
(when-let [deleted-at (:deleted-at profile)]
|
||||||
|
(when (dt/is-after? (dt/now) deleted-at)
|
||||||
|
(ex/raise :type :validation
|
||||||
|
:code :wrong-credentials)))
|
||||||
|
|
||||||
profile)]
|
profile)]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue