diff --git a/app/controllers/web_controller.rb b/app/controllers/web_controller.rb index 8e6980e..80f50b9 100644 --- a/app/controllers/web_controller.rb +++ b/app/controllers/web_controller.rb @@ -15,7 +15,10 @@ def active_menu_item_name(name) def require_password # authenticated using jwt_authentication gem - return if ENV["JWT_KEY"] && session[:jwt_user_data] + if ENV["JWT_KEY"] && session[:jwt_user_data] + session[:logged_in] = true + return + end raise "Need WEB_PASSWORD configured in prod." if Rails.env.production? && !ENV["WEB_PASSWORD"]