Skip to content

Commit 101fe06

Browse files
committed
Revert "add cloudflare 2fa verify stuff"
This reverts commit b95aa89.
1 parent 8ab2244 commit 101fe06

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

app/controllers/application_controller.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@ class ApplicationController < ActionController::Base
44
def home
55
render "shared/home"
66
end
7-
8-
def cloudflare_verify
9-
render plain: ENV.fetch("CLOUDFLARE_2FA_VERIFY")
10-
end
117
end

app/views/layouts/application.html.haml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
%meta{ "http-equiv": "Content-Type", content: "text/html; charset=utf-8" }
1515
1616
%meta{ name: "viewport", content: "width=device-width,initial-scale=1" }
17-
%meta{ name: "cf-2fa-verify", content: ENV.fetch("CLOUDFLARE_2FA_VERIFY") }
1817
1918
= stylesheet_link_tag :application, data: { turbo_track: "reload" }, media: "all"
2019

config/routes.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
Rails.application.routes.draw do
1717
mount Sidekiq::Web => "sidekiq"
1818

19-
get "/.well-known/cf-2fa-verify.txt" => "application#cloudflare_verify"
20-
2119
get ":sitemap", sitemap: /sitemap[A-Za-z\d.]*/, to: redirect { "https://#{ENV.fetch "CLOUDFLARE_R2_BUCKET_URL"}#{_2.path}" }
2220

2321
root "application#home"

0 commit comments

Comments
 (0)