mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove addAuthericatonInfoconnect
This commit is contained in:
parent
223945bd36
commit
aca1fca0c2
1 changed files with 2 additions and 14 deletions
|
@ -235,11 +235,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory
|
|||
}
|
||||
|
||||
function ensureConnectUser(credentials) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
function addAuthenticationInfoFromConnect(server, serverUrl, credentials) {
|
||||
return Promise.reject();
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
function validateAuthentication(server, serverUrl) {
|
||||
|
@ -419,15 +415,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory
|
|||
|
||||
if (credentials.ConnectAccessToken && false !== options.enableAutoLogin) {
|
||||
ensureConnectUser(credentials).then(function () {
|
||||
if (server.ExchangeToken) {
|
||||
addAuthenticationInfoFromConnect(server, serverUrl, credentials).then(function () {
|
||||
afterConnectValidated(server, credentials, systemInfo, connectionMode, serverUrl, true, options, resolve);
|
||||
}, function () {
|
||||
afterConnectValidated(server, credentials, systemInfo, connectionMode, serverUrl, true, options, resolve);
|
||||
});
|
||||
} else {
|
||||
afterConnectValidated(server, credentials, systemInfo, connectionMode, serverUrl, true, options, resolve);
|
||||
}
|
||||
afterConnectValidated(server, credentials, systemInfo, connectionMode, serverUrl, true, options, resolve);
|
||||
});
|
||||
} else {
|
||||
afterConnectValidated(server, credentials, systemInfo, connectionMode, serverUrl, true, options, resolve);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue