From: Anton Khorev Date: Mon, 15 Jul 2024 15:18:12 +0000 (+0300) Subject: Set OpenID URL input value in html instead of javascript X-Git-Tag: live~371^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6d5752ad623dc70d0d6a1004c42871fb05704c56?hp=a3441739ca4b70ee634e4e3c29415efe738df52e Set OpenID URL input value in html instead of javascript --- 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" %>)