mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Fix registrant mid endpoint #2620
This commit is contained in:
parent
34014cf5f7
commit
1783812e30
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
|
||||
def mid
|
||||
phone = params[:user][:phone]
|
||||
client = Digidoc::Client.new
|
||||
endpoint = "#{ENV['sk_digi_doc_service_endpoint']}"
|
||||
client = Digidoc::Client.new(endpoint)
|
||||
|
||||
if Rails.env.test? && phone == "123"
|
||||
@user = ApiUser.find_by(identity_code: "14212128025")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue