mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Add flag oidc-registration for switch on/off registration with oidc
This commit is contained in:
committed by
Alejandro Alonso
parent
0162451205
commit
ea7ad2aaa0
@@ -592,7 +592,8 @@
|
||||
|
||||
:else
|
||||
(let [info (assoc info :is-active (provider-has-email-verified? cfg info))]
|
||||
(if (contains? cf/flags :registration)
|
||||
(if (or (contains? cf/flags :registration)
|
||||
(contains? cf/flags :oidc-registration))
|
||||
(redirect-to-register cfg info request)
|
||||
(redirect-with-error "registration-disabled")))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user