Skip to content

Commit

Permalink
Fixed IdentityURL parsing
Browse files Browse the repository at this point in the history
Minor updates
  • Loading branch information
Dimitrij Denissenko committed Mar 1, 2009
1 parent c6ae82f commit 7ee0d89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:if => Proc.new { |user| user.identity_url.present? }

def self.open_id_authenticate(identity_url)
identity_url.present? ? find_by_identity_url_and_active(identity_url, true) : nil
identity_url.present? ? active.find_by_identity_url(identity_url) : nil
end

protected
Expand Down
2 changes: 1 addition & 1 deletion models/open_id/identity_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.parse(url)
uri.scheme = uri.scheme.downcase # URI should do this
new(uri.normalize.to_s.chomp('/'))
rescue URI::InvalidURIError
nil
''
end
end

Expand Down

0 comments on commit 7ee0d89

Please sign in to comment.