From c3ad502f90363f3507a86fd1bcc778b98c7118e2 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 18 Jul 2024 15:30:08 +0300 Subject: [PATCH] Remove 'None' from auth providers --- app/views/accounts/edit.html.erb | 2 +- lib/auth.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index f15bc195c..a3e6f943b 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -19,7 +19,7 @@
- <%= f.select(:auth_provider, Auth.providers, :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %> + <%= f.select(:auth_provider, { t("auth.providers.none") => "" }.merge(Auth.providers), :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %> <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
(" target="_new"><%= t ".openid.link text" %>) diff --git a/lib/auth.rb b/lib/auth.rb index 01167fb1d..729772477 100644 --- a/lib/auth.rb +++ b/lib/auth.rb @@ -3,7 +3,6 @@ module Auth def self.providers @providers[I18n.locale] ||= { - I18n.t("auth.providers.none") => "", I18n.t("auth.providers.openid") => "openid" }.tap do |providers| providers[I18n.t("auth.providers.google")] = "google" if Settings.key?(:google_auth_id) -- 2.39.5