Files
ftp-manager/app/controllers/application_controller.rb
T
2016-09-12 22:15:44 -05:00

12 lines
238 B
Ruby

class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :verify_session
private
def verify_session
redirect_to logout_path and return if session[:token].nil?
end
end