destroys manager and managed_user session
This commit is contained in:
@@ -10,9 +10,16 @@ class Management::SessionsController < ActionController::Base
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
destroy_session
|
||||
redirect_to root_path, notice: t("devise.sessions.signed_out")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def destroy_session
|
||||
session["manager_id"] = nil
|
||||
session["managed_user_id"] = nil
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user