From 6d5752ad623dc70d0d6a1004c42871fb05704c56 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 15 Jul 2024 18:18:12 +0300 Subject: [PATCH] Set OpenID URL input value in html instead of javascript --- app/assets/javascripts/auth_providers.js | 1 - app/views/application/_auth_providers.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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" %>) -- 2.39.5