mirror of
https://github.com/penpot/penpot.git
synced 2026-05-27 10:53:51 +00:00
🔥 Remove unreachable code.
This commit is contained in:
parent
bfb23ad60b
commit
6461ebe2b8
@ -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…
x
Reference in New Issue
Block a user