0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 09:38:56 -05:00

🐛 Fix incorrect message trying to login with bad credentials

This commit is contained in:
Pablo Alba 2024-03-01 13:53:57 +01:00
parent 44b66352ab
commit 041224e44b

View file

@ -100,7 +100,8 @@
:initial initial) :initial initial)
on-error on-error
(fn [cause] (fn [err]
(let [cause (ex-data err)]
(cond (cond
(and (= :restriction (:type cause)) (and (= :restriction (:type cause))
(= :profile-blocked (:code cause))) (= :profile-blocked (:code cause)))
@ -119,7 +120,7 @@
(reset! error (tr "errors.wrong-credentials")) (reset! error (tr "errors.wrong-credentials"))
:else :else
(reset! error (tr "errors.generic")))) (reset! error (tr "errors.generic")))))
on-success-default on-success-default
(fn [data] (fn [data]