Permalink
Browse files

Handle funky OpenID values gracefully

  • Loading branch information...
1 parent 4f4e3e5 commit cd4c4a9d1539a6e6e18484caf4cea10bb05dcc40 @toolmantim committed Sep 9, 2008
Showing with 4 additions and 0 deletions.
  1. +2 −0 app/controllers/sessions_controller.rb
  2. +2 −0 app/controllers/users_controller.rb
@@ -27,6 +27,8 @@ def create
end
end
end
+ rescue OpenIdAuthentication::InvalidOpenId
+ render :action => 'new'
end
def destroy
@@ -29,6 +29,8 @@ def verify
redirect_to details_users_path
end
end
+ rescue OpenIdAuthentication::InvalidOpenId
+ render :action => 'new'
end
def details

0 comments on commit cd4c4a9

Please sign in to comment.