mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 21:41:39 +02:00
✨ Add parameter to disable registration
This commit is contained in:
parent
79f7d29df9
commit
e8bd7436aa
6 changed files with 14 additions and 2 deletions
|
@ -51,6 +51,8 @@
|
|||
(st/emit! (assoc-value field value))))
|
||||
(on-error [{:keys [type code] :as payload}]
|
||||
(case code
|
||||
:uxbox.services.users/registration-disabled
|
||||
(st/emit! "Registration is disabled")
|
||||
:uxbox.services.users/email-already-exists
|
||||
(st/emit! (assoc-error :email "Email already exists"))
|
||||
:uxbox.services.users/username-already-exists
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
(st/emit! (assoc-value field value))))
|
||||
(on-error [{:keys [code] :as payload}]
|
||||
(case code
|
||||
:uxbox.services.users/registration-disabled
|
||||
(st/emit! "Registration is disabled")
|
||||
:uxbox.services.users/email-already-exists
|
||||
(st/emit! (assoc-error :email "Email already exists"))
|
||||
:uxbox.services.users/username-already-exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue