mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 23:06:10 +02:00
Merge pull request #4664 from penpot/niwinz-email-blacklist
✨ Add email blacklist mechanism
This commit is contained in:
commit
622d1faffc
10 changed files with 150 additions and 37 deletions
|
@ -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"))
|
||||
|
|
|
@ -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"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue