From 9d8b8e739520b2218bc17eab87db6528f16f2ed8 Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Thu, 13 Mar 2014 10:27:32 -0700 Subject: [PATCH] Probably too mean to tell users that their password is wrong three times, so just once will do. --- app/lib/surface/Surface.coffee | 1 + server/routes/auth.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/surface/Surface.coffee b/app/lib/surface/Surface.coffee index c55032517..24686d354 100644 --- a/app/lib/surface/Surface.coffee +++ b/app/lib/surface/Surface.coffee @@ -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') diff --git a/server/routes/auth.coffee b/server/routes/auth.coffee index c845b28c2..dcb8ea12a 100644 --- a/server/routes/auth.coffee +++ b/server/routes/auth.coffee @@ -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) ) ))