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