From: Tom Hughes Date: Mon, 15 Jul 2024 18:19:23 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4993' X-Git-Tag: live~460 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4a62dac9c06bcdb7c2acac75e9168bf654c4c64d?hp=eb8963662b8a39b3f39b07e48218142e96d0099a Merge remote-tracking branch 'upstream/pull/4993' --- diff --git a/app/assets/javascripts/auth_providers.js b/app/assets/javascripts/auth_providers.js index 38a7287a0..fe0a4fdce 100644 --- a/app/assets/javascripts/auth_providers.js +++ b/app/assets/javascripts/auth_providers.js @@ -10,7 +10,6 @@ $(document).ready(function () { // Add click handler to show OpenID field $("#openid_open_url").click(function () { - $("#openid_url").val("http://"); $("#login_auth_buttons").hide(); $("#openid_login_form").show(); }); diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index 96a20fd85..4577da668 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -50,7 +50,7 @@ <%= t ".openid_url" %> <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %> - <%= text_field_tag("openid_url", "", :tabindex => 20, :autocomplete => "on", :class => "form-control") %> + <%= text_field_tag("openid_url", "https://", :tabindex => 20, :autocomplete => "on", :class => "form-control") %> (" target="_new"><%= t "accounts.edit.openid.link text" %>)