Permalink
Browse files

fixes bug with empty open_id identifier from form field

  • Loading branch information...
1 parent 54a73ca commit 0203eceec657aad92971a26d75bc950f4e3d821c @marcbey marcbey 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 0203ece

Please sign in to comment.