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 8a1ad0b..59aa741 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