From 3671636487161607e37d53af8dbd68b9cb5e231f Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 18 Jan 2026 19:16:56 +0100 Subject: [PATCH] fix logout button --- app/controllers/sessions_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 4f4bbc9..39878cd 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -58,6 +58,11 @@ class SessionsController < ApplicationController end end + def logout + session[:user_id] = nil + redirect_to root_path, notice: "Logged out successfully!" + end + private def verify_steam_response(response) @@ -87,11 +92,6 @@ class SessionsController < ApplicationController end end - def logout - session[:user_id] = nil - redirect_to root_path, notice: "Logged out successfully!" - end - def omniauth_failure redirect_to root_path, alert: "Steam authentication failed: #{params[:message]}" end