add csrf token debugging

This commit is contained in:
Cassie Tarakajian 2017-11-27 17:26:32 -05:00
parent d03b433cfe
commit 44f02d1159

View file

@ -135,7 +135,8 @@ app.get('*', (req, res) => {
app.use((err, req, res, next) => {
if (err.code !== 'EBADCSRFTOKEN') return next(err);
console.error('Invalid CSRF token for: ' + req.url);
console.error('Invalid CSRF Token.');
console.error(req.url);
return next(err);
});