Never show login page to a logged in user

This commit is contained in:
Kevin McConnell
2025-01-13 14:20:42 +00:00
parent e7bc04856f
commit c84926692e
+1 -1
View File
@@ -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