diff --git a/app/models/user.rb b/app/models/user.rb index 30c5a6fb..7dccbfe5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -157,7 +157,7 @@ class User < ActiveRecord::Base end def self.find_by_open_id_url(raw_identity_url) - normalized_open_id_url = OpenIdAuthentication.normalize_url(raw_identity_url) + normalized_open_id_url = OpenIdAuthentication.normalize_identifier(raw_identity_url) find(:first, :conditions => ['open_id_url = ?', normalized_open_id_url]) end @@ -248,6 +248,6 @@ protected def normalize_open_id_url return if open_id_url.nil? - self.open_id_url = OpenIdAuthentication.normalize_url(open_id_url) + self.open_id_url = OpenIdAuthentication.normalize_identifier(open_id_url) end end