diff --git a/app/models/user.rb b/app/models/user.rb index e1b98f3a6..18ab410d0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -16,6 +16,6 @@ class User < ApplicationRecord identity_code = uid.slice(2..-1) # country_code = uid.slice(0..1) - User.find_by(identity_code: identity_code) + find_by(identity_code: identity_code) end end diff --git a/config/environments/production.rb b/config/environments/production.rb index 377166f29..e1966d6ba 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -43,7 +43,7 @@ Rails.application.configure do # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - config.force_ssl = true + config.force_ssl = false # Use the lowest log level to ensure availability of diagnostic information # when problems arise.