mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Update registrar sessions
This commit is contained in:
parent
936c570e1f
commit
e72bb0be54
5 changed files with 43 additions and 7 deletions
|
@ -42,5 +42,14 @@ class ApiUser < User
|
|||
def queued_messages
|
||||
registrar.messages.queued
|
||||
end
|
||||
|
||||
class << self
|
||||
def find_by_idc_data(idc_data)
|
||||
return false if idc_data.blank?
|
||||
identity_code = idc_data.scan(/serialNumber=(\d+)/).flatten.first
|
||||
|
||||
find_by(identity_code: identity_code)
|
||||
end
|
||||
end
|
||||
end
|
||||
# rubocop: enable Metrics/ClassLength
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue