From 83ca9b95dec2d74cdae67433ad93bc17343fb9e9 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Tue, 3 Jul 2012 17:39:31 +0100 Subject: [PATCH] fix copy paste errors in complete_reset api --- lib/wsapi/complete_reset.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/wsapi/complete_reset.js b/lib/wsapi/complete_reset.js index 5a00e91dd..b48f6582e 100644 --- a/lib/wsapi/complete_reset.js +++ b/lib/wsapi/complete_reset.js @@ -59,9 +59,9 @@ exports.process = function(req, res) { if (err) return wsapi.databaseDown(res, err); if (!known) { - // clear the pendingCreation token from the session if we find no such + // clear the pendingReset token from the session if we find no such // token in the database - delete req.session.pendingCreation; + delete req.session.pendingReset; return res.json({ success: false} ); } @@ -70,9 +70,9 @@ exports.process = function(req, res) { logger.warn("couldn't complete email verification: " + err); wsapi.databaseDown(res, err); } else { - // clear the pendingCreation token from the session once we - // successfully complete user creation - delete req.session.pendingCreation; + // clear the pendingReset token from the session once we + // successfully complete password reset + delete req.session.pendingReset; // At this point, the user is either on the same browser with a token from // their email address, OR they've provided their account password. It's -- GitLab