mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Use POST request when initiating QuickConnect
This commit is contained in:
parent
f5afde5060
commit
711e5ae728
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user