From c84926692e7b09549170795aca73fe1c2ff88b01 Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Mon, 13 Jan 2025 14:20:42 +0000 Subject: [PATCH] Never show login page to a logged in user --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 647a778c7..428c5a7f4 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,5 +1,5 @@ class SessionsController < ApplicationController - allow_unauthenticated_access only: %i[ new create ] + require_unauthenticated_access only: %i[ new create ] rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_session_path, alert: "Try again later." } before_action :require_first_run_completion