mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add mid login to registrant
This commit is contained in:
parent
869c3fa95e
commit
8f109718c7
3 changed files with 14 additions and 2 deletions
|
@ -29,5 +29,13 @@ class RegistrantUser < User
|
|||
|
||||
u
|
||||
end
|
||||
|
||||
def find_or_create_by_mid_data(response)
|
||||
u = where(registrant_ident: "#{response.user_country}-#{response.user_id_code}").first_or_create
|
||||
u.username = "#{response.user_givenname} #{response.user_surname}"
|
||||
u.save
|
||||
|
||||
u
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue