Permalink
Browse files

new rails plugin also no longer uses the open_id_complete paramater, …

…so use the helper method provided by the plugin to determine if open id is being used
  • Loading branch information...
1 parent 4d0f507 commit 7aa9719b372c47ec0888dfe140f21c864948346f @mreinsch mreinsch committed Mar 18, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/authlogic_openid/acts_as_authentic.rb
  2. +1 −1 lib/authlogic_openid/session.rb
@@ -155,7 +155,7 @@ def using_openid?
end
def openid_complete?
- session_class.controller.params[:open_id_complete] && session_class.controller.params[:for_model]
+ session_class.controller.using_open_id? && session_class.controller.params[:for_model]
end
def authenticate_with_openid?
@@ -75,7 +75,7 @@ def save(&block)
private
def authenticating_with_openid?
- attempted_record.nil? && errors.empty? && (!openid_identifier.blank? || (controller.params[:open_id_complete] && controller.params[:for_session]))
+ attempted_record.nil? && errors.empty? && (!openid_identifier.blank? || (controller.using_open_id? && controller.params[:for_session]))
end
def find_by_openid_identifier_method

0 comments on commit 7aa9719

Please sign in to comment.