Flash notification on OAuth Provider Unlink
This commit is contained in:
@ -195,6 +195,7 @@ exports.getOauthUnlink = function(req, res, next) {
|
|||||||
|
|
||||||
user.save(function(err) {
|
user.save(function(err) {
|
||||||
if (err) return next(err);
|
if (err) return next(err);
|
||||||
|
req.flash('info', { msg: provider + ' account has been unlinked.' });
|
||||||
res.redirect('/account');
|
res.redirect('/account');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user