Probably too mean to tell users that their password is wrong three times, so just once will do.

This commit is contained in:
Nick Winter 2014-03-13 10:27:32 -07:00
parent c8103154a9
commit 9d8b8e7395
2 changed files with 2 additions and 1 deletions
app/lib/surface
server/routes

View file

@ -450,6 +450,7 @@ module.exports = Surface = class Surface extends CocoClass
@gridLayer?.parent?
onToggleGrid: (e) ->
# TODO: figure out a better way of managing grid / debug so it's not split across PlaybackView and Surface
e?.preventDefault?()
if @gridShowing() then @hideGrid() else @showGrid()
flag = $('#grid-toggle i.icon-ok')

View file

@ -25,7 +25,7 @@ module.exports.setup = (app) ->
hash = User.hashPassword(password)
unless user.get('passwordHash') is hash
return done(null, false, {message:'is wrong, wrong, wrong', property:'password'})
return done(null, false, {message:'is wrong.', property:'password'})
return done(null, user)
)
))