From 3ecfef49e9e1485f17161eab42906cca16ec5899 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 22 Feb 2015 13:33:26 +0000 Subject: [PATCH 1/1] Change OpenID fields to be text fields Although technically a URL is required in practive a domain is often enough, but browsers will reject that in a URL field. --- app/views/user/account.html.erb | 2 +- app/views/user/login.html.erb | 2 +- app/views/user/new.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 94183ff42..1cd05aba6 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -44,7 +44,7 @@
- <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> + <%= f.text_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> (<%= t 'user.account.openid.link text' %>)
diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index a78916dcc..2b667c725 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -50,7 +50,7 @@
- <%= url_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %> + <%= text_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %> (<%= t 'user.account.openid.link text' %>)
diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index d1772f996..d7e9bd63d 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -41,7 +41,7 @@ - <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %> + <%= text_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %> <%= error_message_on(:user, :openid_url) %> <%= t 'user.new.openid no password' %> -- 2.45.1