Permalink
Browse files

skip csrf protection

  • Loading branch information...
1 parent c1a792a commit 760112198e351c55f3171b5926cb40b5854a281a @lantius committed Jan 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.rb
View
@@ -7,10 +7,11 @@
require "#{File.dirname(__FILE__)}/models/user"
enable :sessions
+set :protection, :except => [:remote_token, :frame_options]
-post "/signin" do
+post '/signin' do
authenticate(params[:token])
- redirect "/"
+ redirect '/'
end
get '/signout' do

0 comments on commit 7601121

Please sign in to comment.