From 0e7c2a344c342248d40ab75a380dabe58dca48a2 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Mon, 7 Dec 2009 18:43:34 -0500 Subject: [PATCH] Normalize token, not URL OpenID 2.0 supports tokens that aren't valid URLs --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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