diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b220d2a3..47ec8ea6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -220,6 +220,7 @@ class ApplicationController < ActionController::Base logger.error "Error in retrieve provider info: #{e}" # Use the default site settings @user_domain = "greenlight" + @settings = Setting.find_or_create_by(provider: @user_domain) if e.message.eql? "No user with that id exists" render "errors/greenlight_error", locals: { message: I18n.t("errors.not_found.user_not_found.message"),