diff --git a/backend/src/app/rpc/commands/auth.clj b/backend/src/app/rpc/commands/auth.clj index 5c0a3e801..5ce869de5 100644 --- a/backend/src/app/rpc/commands/auth.clj +++ b/backend/src/app/rpc/commands/auth.clj @@ -109,6 +109,10 @@ (when-not (check-password profile password) (ex/raise :type :validation :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)]