Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* 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.
  • Loading branch information...
commit 8d9523a68effdd80789179463b258f32e220f78e 1 parent 343a53b
Ben Johnson authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  CHANGELOG.rdoc
  2. +1 −1  lib/authlogic_openid/session.rb
1  CHANGELOG.rdoc
View
@@ -4,6 +4,7 @@
* 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 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
2  lib/authlogic_openid/session.rb
View
@@ -64,7 +64,7 @@ def save(&block)
private
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
def find_by_openid_identifier_method
Please sign in to comment.
Something went wrong with that request. Please try again.