Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle funky OpenID values gracefully

  • Loading branch information...
commit cd4c4a9d1539a6e6e18484caf4cea10bb05dcc40 1 parent 4f4e3e5
@toolmantim authored
View
2  app/controllers/sessions_controller.rb
@@ -27,6 +27,8 @@ def create
end
end
end
+ rescue OpenIdAuthentication::InvalidOpenId
+ render :action => 'new'
end
def destroy
View
2  app/controllers/users_controller.rb
@@ -29,6 +29,8 @@ def verify
redirect_to details_users_path
end
end
+ rescue OpenIdAuthentication::InvalidOpenId
+ render :action => 'new'
end
def details
Please sign in to comment.
Something went wrong with that request. Please try again.