Merge pull request #1697 from internetee/do-not-force-ssl

Prod: don't force SSL in rails / Respect user type on omniauth
This commit is contained in:
Timo Võhmar 2020-10-01 14:26:21 +03:00 committed by GitHub
commit 6b74bbb3fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.