mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-26 21:02:02 -04:00
Probably too mean to tell users that their password is wrong three times, so just once will do.
This commit is contained in:
parent
c8103154a9
commit
9d8b8e7395
2 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue