Skip to content
Snippets Groups Projects
Commit 83ca9b95 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix copy paste errors in complete_reset api

parent 50c1a9ac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment