mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Remove dead code
This commit is contained in:
parent
1eb13341a7
commit
3cddd24462
1 changed files with 1 additions and 6 deletions
|
@ -91,11 +91,6 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
end
|
||||
end
|
||||
|
||||
def find_user_by_idc(idc)
|
||||
return User.new unless idc
|
||||
ApiUser.find_by(identity_code: idc) || User.new
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def after_sign_in_path_for(_resource_or_scope)
|
||||
|
@ -109,4 +104,4 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
def user_for_paper_trail
|
||||
current_registrant_user.present? ? current_registrant_user.id_role_username : 'anonymous'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue