]> git.openstreetmap.org Git - rails.git/commitdiff
Remove the Yahoo OpenID link as they no longer support OpenID
authorTom Hughes <tom@compton.nu>
Thu, 17 Jun 2021 21:33:05 +0000 (22:33 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 17 Jun 2021 21:33:05 +0000 (22:33 +0100)
.rubocop_todo.yml
app/assets/images/yahoo.svg [deleted file]
app/views/sessions/new.html.erb
config/locales/en.yml
test/helpers/user_helper_test.rb

index 3059d5773e55f609787cd5921735e35b7fa06732..f7ee886c99cbf23ebec6cd5fa465707c2f2a589c 100644 (file)
@@ -19,7 +19,7 @@ require:
 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
 # URISchemes: http, https
 Layout/LineLength:
-  Max: 254
+  Max: 270
 
 # Offense count: 36
 # Configuration parameters: AllowSafeAssignment.
diff --git a/app/assets/images/yahoo.svg b/app/assets/images/yahoo.svg
deleted file mode 100644 (file)
index b0bbdef..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><defs><style>.a{fill:#6001d2;}.b{fill:#fff;fill-rule:evenodd;}</style></defs><rect class="a" width="36" height="36"/><path class="b" d="M16.55,12.38l-3,7.22-3-7.22h-5l5.53,12.4-2,4.47H14l7.36-16.87ZM22.37,19a3,3,0,0,0-3.12,2.9,2.89,2.89,0,0,0,3,2.8,3,3,0,0,0,3.12-2.9,2.87,2.87,0,0,0-3-2.8M25.86,6.85,20.93,17.91h5.51L31.37,6.85Z"/></svg>
\ No newline at end of file
index 69ea7d8fd54e0e8a717971c990d6a8f8c08023dd..fa0747c9c8370fd3ae78aef189e104d4533577e6 100644 (file)
@@ -44,7 +44,6 @@
         <% if Settings.key?(:wikipedia_auth_id) -%>
         <li><%= auth_button "wikipedia", "wikipedia" %></li>
         <% end -%>
-        <li><%= auth_button "yahoo", "openid", :openid_url => "yahoo.com" %></li>
         <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
         <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>
       </ul>
index 93d9fb61dcd2933863e5389462de3c7406a0edb0..25464bdcfc4e767838f4304df129e35439d88f7a 100644 (file)
@@ -1666,9 +1666,6 @@ en:
         wikipedia:
           title: Login with Wikipedia
           alt: Login with a Wikipedia Account
-        yahoo:
-          title: Login with Yahoo
-          alt: Login with a Yahoo OpenID
         wordpress:
           title: Login with Wordpress
           alt: Login with a Wordpress OpenID
index a378ad5b0f1f855bcb697d9861791c576ea11474..758baa1cb7d42dc9d56567c548f0ea6548b09322 100644 (file)
@@ -75,8 +75,8 @@ class UserHelperTest < ActionView::TestCase
     button = auth_button("google", "google")
     assert_equal("<a class=\"auth_button\" title=\"Login with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\"><img alt=\"Login with a Google OpenID\" class=\"rounded-lg\" src=\"/images/google.svg\" /></a>", button)
 
-    button = auth_button("yahoo", "openid", :openid_url => "yahoo.com")
-    assert_equal("<a class=\"auth_button\" title=\"Login with Yahoo\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/openid?openid_url=yahoo\.com\"><img alt=\"Login with a Yahoo OpenID\" class=\"rounded-lg\" src=\"/images/yahoo.svg\" /></a>", button)
+    button = auth_button("wordpress", "openid", :openid_url => "wordpress.com")
+    assert_equal("<a class=\"auth_button\" title=\"Login with Wordpress\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/openid?openid_url=wordpress\.com\"><img alt=\"Login with a Wordpress OpenID\" class=\"rounded-lg\" src=\"/images/wordpress.svg\" /></a>", button)
   end
 
   private