Stop using session flash to communicate with callbacks

This commit is contained in:
Tom Hughes 2025-02-12 00:03:32 +00:00
parent b44399fb7c
commit 43f40c5d03
7 changed files with 12 additions and 30 deletions

View file

@ -3,8 +3,8 @@ class SessionsController < ApplicationController
layout "site"
before_action :disable_terms_redirect, :only => [:destroy]
before_action :authorize_web
before_action :authorize_web, :except => [:destroy]
before_action -> { authorize_web(:skip_terms => true) }, :only => [:destroy]
before_action :set_locale
before_action :check_database_readable
before_action :require_cookies, :only => [:new]