Skip to content

Commit

Permalink
Freaky logout is freaky
Browse files Browse the repository at this point in the history
  • Loading branch information
zmack committed Jul 9, 2010
1 parent 3b14d02 commit 15060e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/padrino/warden.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def self.registered(app)
get :logout, :map => app.auth_logout_path do
authorize!
logout
env['x-rack.flash'][:success] = options.auth_success_message if defined?(Rack::Flash)
redirect options.auth_success_path
redirect options.auth_login_path
end
end
end
Expand Down

0 comments on commit 15060e8

Please sign in to comment.