mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Respect User type when using from_omniauth()
This commit is contained in:
parent
8794e3c22e
commit
d979fb4f45
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ class User < ApplicationRecord
|
||||||
identity_code = uid.slice(2..-1)
|
identity_code = uid.slice(2..-1)
|
||||||
# country_code = uid.slice(0..1)
|
# country_code = uid.slice(0..1)
|
||||||
|
|
||||||
User.find_by(identity_code: identity_code)
|
find_by(identity_code: identity_code)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue