0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

Add flag oidc-registration for switch on/off registration with oidc

This commit is contained in:
Andrey Antukh 2024-08-06 10:38:19 +02:00 committed by Alejandro Alonso
parent 0162451205
commit ea7ad2aaa0
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- User switch language to "zh_hant" will get 400 [Github #4884](https://github.com/penpot/penpot/issues/4884)
- Smtp config ignoring port if ssl is set [Github #4872](https://github.com/penpot/penpot/issues/4872)
- Ability to let users to authenticate with a private oidc provider only [Github #4963](https://github.com/penpot/penpot/issues/4963)
## 2.1.1

View file

@ -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")))))