repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git]
/
server
/
web
/
middlewares
/
ensure-logged-in.js
blob
cad4c46fac41318a81f05397605924fab36a3c49
1
'use strict'
;
2
3
var
loginRequired
=
require
(
'./login-required'
);
4
5
module
.
exports
=
function
(
req
,
res
,
next
) {
6
if
(
req
.
user
) {
7
return
next
();
8
}
9
10
loginRequired
(
req
,
res
,
next
);
11
};