Permalink
Browse files

Merge pull request #447 from marcbey/master

Fixes a bug with empty open_id identifier from form field fixed
  • Loading branch information...
2 parents 90fc42c + 0203ece commit 4bc762da3beb10e754688ce271d20814403ce96a @sferik sferik committed Aug 30, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 oa-openid/lib/omniauth/strategies/open_id.rb
@@ -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

0 comments on commit 4bc762d

Please sign in to comment.