mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Remove country code from Tara user search
This commit is contained in:
parent
6c24eff1ef
commit
96c0d09c07
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ class User < ApplicationRecord
|
|||
def self.from_omniauth(omniauth_hash)
|
||||
uid = omniauth_hash['uid']
|
||||
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, country_code: country_code)
|
||||
User.find_by(identity_code: identity_code)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue