Skip to content

Commit

Permalink
Merge pull request omniauth#447 from marcbey/master
Browse files Browse the repository at this point in the history
Fixes a bug with empty open_id identifier from form field fixed
  • Loading branch information
sferik committed Aug 30, 2011
2 parents 90fc42c + 0203ece commit 4bc762d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oa-openid/lib/omniauth/strategies/open_id.rb
Expand Up @@ -56,9 +56,11 @@ def dummy_app
end

def identifier
options[:identifier] || request[IDENTIFIER_URL_PARAMETER]
i = options[:identifier] || request[IDENTIFIER_URL_PARAMETER]
i = nil if i == ''
i
end

def request_phase
identifier ? start : get_identifier
end
Expand Down

0 comments on commit 4bc762d

Please sign in to comment.