Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DonMartin76 committed Nov 27, 2017
1 parent f2edb61 commit 6b8fdef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.12.1",
"version": "0.12.2",
"private": true,
"dependencies": {
"async": "2.0.1",
Expand Down Expand Up @@ -41,4 +41,4 @@
"esversion": 6
},
"name": "portal"
}
}
4 changes: 4 additions & 0 deletions routes/verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function handleEmailVerification(req, res, verifInfo, next) {
}, function (err, apiResponse, apiBody) {
if (err)
return next(err);
// HACK: Update passport's session state
if (req.session && req.session.passport && req.session.passport.user)
req.session.passport.user.validated = true;

if (!utils.acceptJson(req)) {
res.render('verification_email_success', {
title: 'Verification Successful',
Expand Down

0 comments on commit 6b8fdef

Please sign in to comment.