mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
🐛 Fix unexpected error when user explictly reject oidc auth
This commit is contained in:
parent
2baab838e4
commit
fc1495fdd1
@ -696,15 +696,20 @@
|
|||||||
(ptk/reify ::show-redirect-error
|
(ptk/reify ::show-redirect-error
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
(let [hint (case error
|
(when-let [hint (case error
|
||||||
"registration-disabled"
|
"registration-disabled"
|
||||||
(tr "errors.registration-disabled")
|
(tr "errors.registration-disabled")
|
||||||
"profile-blocked"
|
"profile-blocked"
|
||||||
(tr "errors.profile-blocked")
|
(tr "errors.profile-blocked")
|
||||||
"auth-provider-not-allowed"
|
"auth-provider-not-allowed"
|
||||||
(tr "errors.auth-provider-not-allowed")
|
(tr "errors.auth-provider-not-allowed")
|
||||||
"email-domain-not-allowed"
|
"email-domain-not-allowed"
|
||||||
(tr "errors.email-domain-not-allowed")
|
(tr "errors.email-domain-not-allowed")
|
||||||
:else
|
|
||||||
(tr "errors.generic"))]
|
;; We explicitly do not show any error here, it a explicit user operation.
|
||||||
|
"unable-to-auth"
|
||||||
|
nil
|
||||||
|
|
||||||
|
(tr "errors.generic"))]
|
||||||
|
|
||||||
(rx/of (msg/warn hint))))))
|
(rx/of (msg/warn hint))))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user