Fix mess with registrant user routes

This commit is contained in:
Alex Sherman 2020-09-30 13:33:45 +05:00
parent 94b8ffd158
commit 6e99521d59
6 changed files with 54 additions and 55 deletions

View file

@ -2,7 +2,7 @@ require 'open3'
class ApiUser < User
include EppErrors
devise :database_authenticatable, :trackable, :timeoutable, #:id_card_authenticatable,
devise :database_authenticatable, :trackable, :timeoutable,
authentication_keys: [:username]
def epp_code_map

View file

@ -1,7 +1,7 @@
class RegistrantUser < User
attr_accessor :idc_data
devise :trackable, :timeoutable
devise :trackable, :timeoutable, :id_card_authenticatable
def ability
@ability ||= Ability.new(self)

View file

@ -21,5 +21,4 @@ class User < ApplicationRecord
User.find_by(identity_code: identity_code, country_code: country_code)
end
end