mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Return user from id card parser method
This commit is contained in:
parent
b3fc3ce915
commit
4cd8df079f
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class RegistrantUser < User
|
|||
u = where(registrant_ident: "#{country}-#{identity_code}").first_or_create
|
||||
u.username = "#{first_name} #{last_name}"
|
||||
u.save
|
||||
|
||||
u
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue