Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use OpenID to do the URL normalization; this isn't in the rails plugi…

…n anymore
  • Loading branch information...
commit 9b802c347f5addebcbce945af3b5f80b3ee7b214 1 parent 8c242a5
@mreinsch authored
View
4 lib/authlogic_openid/acts_as_authentic.rb
@@ -53,9 +53,9 @@ def self.included(klass)
# Set the openid_identifier field and also resets the persistence_token if this value changes.
def openid_identifier=(value)
- write_attribute(:openid_identifier, value.blank? ? nil : OpenIdAuthentication.normalize_identifier(value))
+ write_attribute(:openid_identifier, value.blank? ? nil : OpenID.normalize_url(value))
reset_persistence_token if openid_identifier_changed?
- rescue OpenIdAuthentication::InvalidOpenId => e
+ rescue OpenID::DiscoveryFailure => e
@openid_error = e.message
end
View
4 lib/authlogic_openid/session.rb
@@ -48,9 +48,9 @@ def credentials=(value)
end
def openid_identifier=(value)
- @openid_identifier = value.blank? ? nil : OpenIdAuthentication.normalize_identifier(value)
+ @openid_identifier = value.blank? ? nil : OpenID.normalize_url(value)
@openid_error = nil
- rescue OpenIdAuthentication::InvalidOpenId => e
+ rescue OpenID::DiscoveryFailure => e
@openid_identifier = nil
@openid_error = e.message
end
Please sign in to comment.
Something went wrong with that request. Please try again.