mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 19:08:29 +02:00
✨ Disallow using same password as user email
This commit is contained in:
parent
86e4826e48
commit
7134bbf484
7 changed files with 71 additions and 0 deletions
|
@ -60,6 +60,10 @@
|
|||
:email-already-exists
|
||||
(swap! form assoc-in [:errors :email]
|
||||
{:message "errors.email-already-exists"})
|
||||
|
||||
:email-as-password
|
||||
(swap! form assoc-in [:errors :password]
|
||||
{:message "errors.email-as-password"})
|
||||
|
||||
(st/emit! (dm/error (tr "errors.generic")))))
|
||||
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
:old-password-not-match
|
||||
(swap! form assoc-in [:errors :password-old]
|
||||
{:message (tr "errors.wrong-old-password")})
|
||||
:email-as-password
|
||||
(swap! form assoc-in [:errors :password-1]
|
||||
{:message (tr "errors.email-as-password")})
|
||||
|
||||
(let [msg (tr "generic.error")]
|
||||
(st/emit! (dm/error msg)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue