Skip to content
Browse files

Some suga

  • Loading branch information...
1 parent d0a5124 commit 1bd2707d1345754180ca30a188f6f4dab1ea8761 @benjreinhart benjreinhart committed Mar 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/users/model.coffee
View
4 components/users/model.coffee
@@ -22,10 +22,10 @@ module.exports = class User extends Base
save: (cb) =>
{password} = (attributes = @attributes)
- bcrypt.hash password, 10, (err, hash) ->
+ bcrypt.hash password, 10, (err, hashedPassword) ->
return cb err if err?
- user = extend (whitelist attributes), { hashedPassword: hash }
+ user = extend (whitelist attributes), { hashedPassword }
(new UserStore user).save cb
whitelist = (attributes) ->

0 comments on commit 1bd2707

Please sign in to comment.
Something went wrong with that request. Please try again.