mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
✨ Disable oidc registration when registration
flag is disabled
This commit is contained in:
parent
a969550aa4
commit
81b52d7170
1 changed files with 3 additions and 1 deletions
|
@ -574,7 +574,9 @@
|
|||
|
||||
:else
|
||||
(let [info (assoc info :is-active (provider-has-email-verified? cfg info))]
|
||||
(redirect-to-register cfg info))))
|
||||
(if (contains? cf/flags :registration)
|
||||
(redirect-to-register cfg info)
|
||||
(redirect-with-error "registration-disabled")))))
|
||||
|
||||
(defn- auth-handler
|
||||
[cfg {:keys [params] :as request}]
|
||||
|
|
Loading…
Add table
Reference in a new issue