]> git.openstreetmap.org Git - rails.git/commitdiff
Don't show the openid field if the URL is the empty string
authorTom Hughes <tom@compton.nu>
Mon, 22 Aug 2011 10:00:42 +0000 (11:00 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 22 Aug 2011 10:00:42 +0000 (11:00 +0100)
app/views/user/new.html.erb

index 8a1ad0bb0e6302d07d4be6695a539aa89e03fd91..59aa7410e667f488ca8096b9aa76d247ca92bb23 100644 (file)
@@ -75,7 +75,7 @@
 
 <%=
   update_page_tag do |page|
-    if params[:openid] or (@user and @user.openid_url)
+    if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?)
       page[:openid_prompt].hide
     else
       page[:openid_spacer].hide