Update auth.coffee
This commit is contained in:
parent
c1d9a5ae13
commit
68ed142bd6
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module.exports.setup = (app) ->
|
||||||
|
|
||||||
hash = User.hashPassword(password)
|
hash = User.hashPassword(password)
|
||||||
unless user.get('passwordHash') is hash
|
unless user.get('passwordHash') is hash
|
||||||
return done(null, false, {message: 'is wrong.', property: 'password'})
|
return done(null, false, {message: 'is wrong', property: 'password'})
|
||||||
return done(null, user)
|
return done(null, user)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
Reference in a new issue