mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Refactor Devise integration
- Use scoped users - Use the named route helpers instead of hardcoded paths
This commit is contained in:
parent
c31f507c25
commit
9684c8e59f
52 changed files with 313 additions and 280 deletions
|
@ -21,7 +21,7 @@ class Registrar
|
|||
uri = URI.parse("#{ENV['repp_url']}domain_transfers")
|
||||
request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
||||
request.body = { data: { domainTransfers: domain_transfers } }.to_json
|
||||
request.basic_auth(current_user.username, current_user.password)
|
||||
request.basic_auth(current_registrar_user.username, current_registrar_user.password)
|
||||
|
||||
|
||||
if Rails.env.test?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue