Permalink
Browse files

Only hash password if password is set, to speed up unit tests

  • Loading branch information...
1 parent d9e6da0 commit d4e70cafd80210ebdf8dcb596dbb929a32bf7e11 @ducki2p committed Jan 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/i2conomy/mint.clj
View
@@ -49,7 +49,8 @@
([username password]
(do
(account-available username)
- (let [password-hash (.encryptPassword (StrongPasswordEncryptor.) password)]
+ (let [password-hash (if (empty? password) ""
+ (.encryptPassword (StrongPasswordEncryptor.) password))]
(db/create-account username password-hash)))))
(defn pay

0 comments on commit d4e70ca

Please sign in to comment.