Return user from id card parser method

This commit is contained in:
Martin Lensment 2015-05-19 11:07:21 +03:00
parent b3fc3ce915
commit 4cd8df079f

View file

@ -21,6 +21,8 @@ class RegistrantUser < User
u = where(registrant_ident: "#{country}-#{identity_code}").first_or_create u = where(registrant_ident: "#{country}-#{identity_code}").first_or_create
u.username = "#{first_name} #{last_name}" u.username = "#{first_name} #{last_name}"
u.save u.save
u
end end
end end
end end