mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
✨ Handle default register error
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
6d3232e70a
commit
3ae92717da
3 changed files with 5 additions and 1 deletions
|
@ -224,6 +224,7 @@
|
|||
|
||||
"history.alert-message" "You are seeing version %s"
|
||||
|
||||
"errors.api.form.unexpected-error" "An unexpected error occurred."
|
||||
"errors.api.form.old-password-not-match" "Incorrect old password"
|
||||
"errors.api.form.registration-disabled" "The registration is currently disabled."
|
||||
"errors.api.form.email-already-exists" "The email is already in use by another user."
|
||||
|
|
|
@ -221,6 +221,7 @@
|
|||
|
||||
"history.alert-message" "Vous voyez la version %s"
|
||||
|
||||
"errors.api.form.unexpected-error" "Une erreur inattendue c'est produite"
|
||||
"errors.api.form.old-password-not-match" "Ancien mot de passe incorrect"
|
||||
"errors.api.form.registration-disabled" "L'enregistrement est actuellement désactivé."
|
||||
"errors.api.form.email-already-exists" "L'email est déjà utilisé par un autre utilisateur."
|
||||
|
|
|
@ -46,7 +46,9 @@
|
|||
:uxbox.services.users/username-already-exists
|
||||
(swap! form assoc-in [:errors :username]
|
||||
{:type ::api
|
||||
:message "errors.api.form.username-already-exists"})))
|
||||
:message "errors.api.form.username-already-exists"})
|
||||
|
||||
(st/emit! (tr "errors.api.form.unexpected-error"))))
|
||||
|
||||
(defn- on-submit
|
||||
[event form]
|
||||
|
|
Loading…
Add table
Reference in a new issue