mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 04:46:11 +02:00
🐛 Fix unexpected error when user explictly reject oidc auth
This commit is contained in:
parent
2baab838e4
commit
fc1495fdd1
1 changed files with 16 additions and 11 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue