Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CSRFのエラーチェック後の処理を修正

  • Loading branch information...
commit adf01f8c565eed2f018e38a924d7d50a40b8f2f1 1 parent c836b8c
@nsyee00 nsyee00 authored
View
4 lib/controllers/chatroom.js
@@ -119,7 +119,7 @@ exports.create = function(req, res, next) {
//CSRF Check
if (_csrf !== req.param('token')) {
logger.error('CSRF Invalid');
- return;
+ return next(new Error());
}
//validation
@@ -292,7 +292,7 @@ exports.delete = function(req, res, next) {
//CSRF Check
if (_csrf !== req.param('token')) {
logger.error('CSRF Invalid');
- return;
+ return next(new Error());
}
//validation
View
2  lib/controllers/mypage.js
@@ -51,7 +51,7 @@ exports.deactivation = function(req, res, next) {
//CSRF Check
if (_csrf !== req.param('token')) {
logger.error('CSRF Invalid');
- return;
+ return next(new Error());
}
User.deactivate(req.user.id, function(err) {
View
2  lib/controllers/user.js
@@ -25,7 +25,7 @@ exports.create = function(req, res, next) {
//CSRF Check
if (_csrf !== req.param('token')) {
logger.error('CSRF Invalid');
- return;
+ return next(new Error());
}
//validation
Please sign in to comment.
Something went wrong with that request. Please try again.