Skip to content

Commit

Permalink
Revert "if interstitials don't pass any errors back but some still ex…
Browse files Browse the repository at this point in the history
…ist, redirect properly"

This reverts commit 98368bb, but fixes
issue NodeBB#4883
  • Loading branch information
julianlam authored and ralic committed Jul 26, 2016
1 parent 166cf4b commit 2b6ca6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/controllers/authentication.js
Expand Up @@ -94,11 +94,7 @@ function registerAndLoginUser(req, res, userData, callback) {
} else {
userData.register = true;
req.session.registration = userData;
if (res.locals.isAPI) {
return res.json({ referrer: nconf.get('relative_path') + '/register/complete' });
} else {
return res.redirect(nconf.get('relative_path') + '/register/complete');
}
return res.json({ referrer: nconf.get('relative_path') + '/register/complete' });
}
});
},
Expand Down

0 comments on commit 2b6ca6b

Please sign in to comment.