Skip to content

Commit

Permalink
* Make authenticating_with_openid? method a little more stringent to …
Browse files Browse the repository at this point in the history
…avoid trying to double authenticate. Ex: finding a session in the save block during a successful save.
  • Loading branch information
binarylogic committed Apr 3, 2009
1 parent 343a53b commit 8d9523a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rdoc
Expand Up @@ -4,6 +4,7 @@
* Set the openid_identifier by the one passed back by the provider in AuthlogicOpenid::ActsAsAuthentic. * Set the openid_identifier by the one passed back by the provider in AuthlogicOpenid::ActsAsAuthentic.
* Added required_fields and optional_fields config options for AuthlogicOpenid::ActsAsAuthentic. * Added required_fields and optional_fields config options for AuthlogicOpenid::ActsAsAuthentic.
* Added map_openid_registration, attributes_to_save, and map_saved_attributes methods to customize how attributes are set for AuthlogicOpenid::ActsAsAuthentic. * Added map_openid_registration, attributes_to_save, and map_saved_attributes methods to customize how attributes are set for AuthlogicOpenid::ActsAsAuthentic.
* Make authenticating_with_openid? method a little more stringent to avoid trying to double authenticate. Ex: finding a session in the save block during a successful save.


== 1.0.2 released 2009-3-30 == 1.0.2 released 2009-3-30


Expand Down
2 changes: 1 addition & 1 deletion lib/authlogic_openid/session.rb
Expand Up @@ -64,7 +64,7 @@ def save(&block)


private private
def authenticating_with_openid? def authenticating_with_openid?
!openid_identifier.blank? || (controller.params[:open_id_complete] && controller.params[:for_session]) attempted_record.nil? && errors.empty? && (!openid_identifier.blank? || (controller.params[:open_id_complete] && controller.params[:for_session]))
end end


def find_by_openid_identifier_method def find_by_openid_identifier_method
Expand Down

0 comments on commit 8d9523a

Please sign in to comment.