Tumblr now also redirects to unauthorized page if no token found
This commit is contained in:
@ -65,6 +65,13 @@ exports.getFoursquare = function(req, res) {
|
||||
* GET /api/tumblr
|
||||
*/
|
||||
exports.getTumblr = function(req, res) {
|
||||
if (!req.user.tokens.tumblr) {
|
||||
return res.render('api/unauthorized', {
|
||||
title: 'Tumblr API',
|
||||
provider: 'Tumblr',
|
||||
user: req.user
|
||||
});
|
||||
}
|
||||
|
||||
res.render('api/tumblr', {
|
||||
title: 'Tumblr API',
|
||||
|
Reference in New Issue
Block a user