Skip to content

Commit

Permalink
Flash notification on OAuth Provider Unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Feb 1, 2014
1 parent 76484f1 commit 01a367f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ exports.getOauthUnlink = function(req, res, next) {

user.save(function(err) {
if (err) return next(err);
req.flash('info', { msg: provider + ' account has been unlinked.' });
res.redirect('/account');
});
});
Expand Down

0 comments on commit 01a367f

Please sign in to comment.