Permalink
Browse files

According to the Warden docs, #redirect! won't take effect unless a :…

…warden symbol is thrown.
  • Loading branch information...
1 parent 791b9f5 commit e6e6d3db69ade9021d9f3d4b801f635cfc4349a3 @eoin eoin committed Feb 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/warden_oauth/strategy.rb
@@ -44,7 +44,7 @@ def authenticate!
if params.include?('warden_oauth_provider')
store_request_token_on_session
redirect!(request_token.authorize_url)
-
+ throw(:warden)
elsif params.include?('oauth_token')
load_request_token_from_session
if missing_stored_token?

0 comments on commit e6e6d3d

Please sign in to comment.