mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 06:04:56 +02:00
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:
commit
6b74bbb3fb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue