Merge branch 'dev_trustie' into dev_devops
This commit is contained in:
commit
731c06185b
|
@ -130,7 +130,7 @@ module LoginHelper
|
||||||
url = "#{api_host}/api/v1/users/sync_user_token"
|
url = "#{api_host}/api/v1/users/sync_user_token"
|
||||||
sync_json = {
|
sync_json = {
|
||||||
"token": token,
|
"token": token,
|
||||||
"login": type,
|
"login": login,
|
||||||
"user_token": token_value
|
"user_token": token_value
|
||||||
}
|
}
|
||||||
uri = URI.parse(url)
|
uri = URI.parse(url)
|
||||||
|
@ -142,7 +142,7 @@ module LoginHelper
|
||||||
http.use_ssl = true
|
http.use_ssl = true
|
||||||
end
|
end
|
||||||
|
|
||||||
http.send_request('PUT', uri.path, sync_json.to_json, {'Content-Type' => 'application/json'})
|
http.send_request('POST', uri.path, sync_json.to_json, {'Content-Type' => 'application/json'})
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue