UNPKG
generator-neonode
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Yeoman generator to scaffold a Neonode Fullstack MVC Application
Empathia/neonode
generator-neonode
/
generators
/
app
/
templates
/
skeleton
/
middlewares
/
CSRFError.js
11 lines
(9 loc)
•
238 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
if
(CONFIG[CONFIG.environment].sessions ===
false
) {
return
module
.exports =
function
(req, res, next)
{
next
(); } }
module
.exports =
function
(err, req, res, next)
{ logger.
error
(
'CSRF'
, err, res.locals._csrf);
next
(err); };