mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 01:28:30 -05:00
🐛 Fix incorrect message trying to login with bad credentials
This commit is contained in:
parent
44b66352ab
commit
041224e44b
1 changed files with 17 additions and 16 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue