Skip to content

Commit

Permalink
Add HTTPFatalError to the exceptions oauth_callback catches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Mar 27, 2009
1 parent 17b3b0c commit 59a62f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Expand Up @@ -48,7 +48,7 @@ def oauth_callback
cookies[:remember_token] = @user.remember_me

authentication_succeeded
rescue Net::HTTPServerException => e
rescue Net::HTTPServerException, Net::HTTPFatalError => e
case e.message
when '401 "Unauthorized"'
authentication_failed('This authentication request is no longer valid. Please try again.') and return
Expand Down

0 comments on commit 59a62f6

Please sign in to comment.