mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Remove test-dependent code
This commit is contained in:
parent
bb43c6c55d
commit
5e39af41e3
1 changed files with 0 additions and 6 deletions
|
@ -31,12 +31,6 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
client = Digidoc::Client.new(endpoint)
|
||||
client.logger = Rails.application.config.logger unless Rails.env.test?
|
||||
|
||||
if Rails.env.test? && phone == "123"
|
||||
@user = ApiUser.find_by(identity_code: "14212128025")
|
||||
sign_in(@user, event: :authentication)
|
||||
return redirect_to registrant_root_url
|
||||
end
|
||||
|
||||
# country_codes = {'+372' => 'EST'}
|
||||
response = client.authenticate(
|
||||
phone: "+372#{phone}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue