mirror of
https://github.com/penpot/penpot.git
synced 2025-07-07 20:57:22 +02:00
🔥 Remove unreachable code.
This commit is contained in:
parent
bfb23ad60b
commit
6461ebe2b8
1 changed files with 2 additions and 6 deletions
|
@ -32,14 +32,10 @@
|
||||||
|
|
||||||
(defn- validate
|
(defn- validate
|
||||||
[data]
|
[data]
|
||||||
(let [password (:password data)
|
(let [password (:password data)]
|
||||||
terms-privacy (:terms-privacy data)]
|
|
||||||
(cond-> {}
|
(cond-> {}
|
||||||
(> 8 (count password))
|
(> 8 (count password))
|
||||||
(assoc :password {:message "errors.password-too-short"})
|
(assoc :password {:message "errors.password-too-short"}))))
|
||||||
|
|
||||||
(and (not terms-privacy) false)
|
|
||||||
(assoc :terms-privacy {:message "errors.terms-privacy-agreement-invalid"}))))
|
|
||||||
|
|
||||||
(s/def ::fullname ::us/not-empty-string)
|
(s/def ::fullname ::us/not-empty-string)
|
||||||
(s/def ::password ::us/not-empty-string)
|
(s/def ::password ::us/not-empty-string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue