fix logout button

This commit is contained in:
CroneKorkN 2026-01-18 19:16:56 +01:00
parent 453a9137b9
commit 3671636487
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -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