Skip to content

Commit

Permalink
No maximum password length. Feel free to use gettysburg address if yo…
Browse files Browse the repository at this point in the history
…u want
  • Loading branch information
amalloy committed Apr 24, 2011
1 parent f53d7a8 commit 95b3371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/foreclojure/register.clj
Expand Up @@ -13,7 +13,7 @@
[:table
(map form-row
[[text-field :user "Username (4-13 chars.)"]
[password-field :pwd "Password (7-13 chars.)"]
[password-field :pwd "Password (7+ chars.)"]
[password-field :repeat-pwd "Repeat Password"]
[text-field :email "Email"]])
[:tr
Expand All @@ -28,8 +28,8 @@
(= lower-user
(first (re-seq #"[A-Za-z0-9_]+" lower-user)))
"Username must be alphanumeric"
(< 6 (.length pwd) 14)
"Password must be 7-13 characters long",
(< 6 (.length pwd))
"Password must be at least seven characters long",
(= pwd repeat-pwd)
"Passwords don't match",
(not (empty? email))
Expand Down

0 comments on commit 95b3371

Please sign in to comment.