fix logout button
This commit is contained in:
parent
453a9137b9
commit
3671636487
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue