mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use POST request when initiating QuickConnect
This commit is contained in:
parent
f5afde5060
commit
711e5ae728
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ import './login.scss';
|
||||||
|
|
||||||
function authenticateQuickConnect(apiClient) {
|
function authenticateQuickConnect(apiClient) {
|
||||||
const url = apiClient.getUrl('/QuickConnect/Initiate');
|
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) {
|
if (!json.Secret || !json.Code) {
|
||||||
console.error('Malformed quick connect response', json);
|
console.error('Malformed quick connect response', json);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue