Skip to content

Commit

Permalink
improve csrf check
Browse files Browse the repository at this point in the history
  • Loading branch information
nauxliu committed Sep 25, 2015
1 parent 93c992c commit ebdf47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct()
});

// csrf check for every post request
$this->beforeFilter('csrf', ['on' => 'post']);
$this->beforeFilter('csrf', ['on' => ['post', 'delete', 'put', 'patch']]);

// Check if a user is banned.
$this->beforeFilter('check_banned_user', ['except' => ['userBanned', 'logout']]);
Expand Down

0 comments on commit ebdf47b

Please sign in to comment.