Merge pull request #4664 from penpot/niwinz-email-blacklist

 Add email blacklist mechanism
This commit is contained in:
Alejandro 2024-06-04 11:18:28 +02:00 committed by GitHub
commit 622d1faffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 150 additions and 37 deletions

View file

@ -100,7 +100,6 @@
(= :ldap-not-initialized (:code cause)))
(st/emit! (msg/error (tr "errors.ldap-disabled")))
(and (= :restriction (:type cause))
(= :admin-only-profile (:code cause)))
(reset! error (tr "errors.profile-blocked"))

View file

@ -58,6 +58,9 @@
[:restriction :registration-disabled]
(st/emit! (msg/error (tr "errors.registration-disabled")))
[:restriction :email-domain-is-not-allowed]
(st/emit! (msg/error (tr "errors.email-domain-not-allowed")))
[:validation :email-as-password]
(swap! form assoc-in [:errors :password]
{:message "errors.email-as-password"})