Use POST request when initiating QuickConnect

This commit is contained in:
Niels van Velzen 2022-12-07 18:47:47 +01:00 committed by Bill Thornton
parent f5afde5060
commit 711e5ae728

View File

@ -48,7 +48,7 @@ import './login.scss';
function authenticateQuickConnect(apiClient) {
const url = apiClient.getUrl('/QuickConnect/Initiate');
apiClient.getJSON(url).then(function (json) {
apiClient.ajax({ type: 'POST', url }, true).then(res => res.json()).then(function (json) {
if (!json.Secret || !json.Code) {
console.error('Malformed quick connect response', json);
return false;