Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / server / web / middlewares / ensure-logged-in.js
blobcad4c46fac41318a81f05397605924fab36a3c49
1 'use strict';
3 var loginRequired = require('./login-required');
5 module.exports = function(req, res, next) {
6 if (req.user) {
7 return next();
10 loginRequired(req, res, next);