summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-02-08 16:20:37 +0100
committerAzul <azul@leap.se>2014-02-10 14:26:30 +0100
commitc8fcd0d26c3ad5c1c3cfbaf6b57239f907925ed6 (patch)
tree664dfcfb95eb68babd51b67a6ef21a314c8ea77a /users/app
parentcbd757cf151cd61bfdd5637d09f43e4831fec3bb (diff)
require token when logging out via API
Diffstat (limited to 'users/app')
-rw-r--r--users/app/controllers/v1/sessions_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/v1/sessions_controller.rb b/users/app/controllers/v1/sessions_controller.rb
index eb6c322..eae3a1e 100644
--- a/users/app/controllers/v1/sessions_controller.rb
+++ b/users/app/controllers/v1/sessions_controller.rb
@@ -2,6 +2,7 @@ module V1
class SessionsController < ApplicationController
skip_before_filter :verify_authenticity_token
+ before_filter :require_token, only: :destroy
def new
@session = Session.new