Skip to content

Commit

Permalink
new rails plugin also no longer uses the open_id_complete paramater, …
Browse files Browse the repository at this point in the history
…so use the helper method provided by the plugin to determine if open id is being used
  • Loading branch information
Michael Reinsch committed Mar 18, 2010
1 parent 4d0f507 commit 7aa9719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/authlogic_openid/acts_as_authentic.rb
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion lib/authlogic_openid/session.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7aa9719

Please sign in to comment.