Respect User type when using from_omniauth()

This commit is contained in:
Karl Erik Õunapuu 2020-10-01 13:25:05 +03:00
parent 8794e3c22e
commit d979fb4f45
No known key found for this signature in database
GPG key ID: C9DD647298A34764

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