mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
SchedulesDirect requires sha1 of password, not sha256
This commit is contained in:
parent
9bce0aea18
commit
536effbc1a
1 changed files with 4 additions and 6 deletions
|
@ -83,10 +83,9 @@ export default function (page, providerId, options) {
|
||||||
loading.hide();
|
loading.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sha256(str) {
|
function sha1(str) {
|
||||||
|
|
||||||
const buffer = new TextEncoder('utf-8').encode(str);
|
const buffer = new TextEncoder('utf-8').encode(str);
|
||||||
return crypto.subtle.digest('SHA-256', buffer).then(function (hash) {
|
return crypto.subtle.digest('SHA-1', buffer).then(function (hash) {
|
||||||
return hex(hash);
|
return hex(hash);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -107,13 +106,12 @@ export default function (page, providerId, options) {
|
||||||
|
|
||||||
function submitLoginForm() {
|
function submitLoginForm() {
|
||||||
loading.show();
|
loading.show();
|
||||||
sha256(page.querySelector('.txtPass').value).then(function (passwordHash) {
|
sha1(page.querySelector('.txtPass').value).then(function (passwordHash) {
|
||||||
const info = {
|
const info = {
|
||||||
Type: 'SchedulesDirect',
|
Type: 'SchedulesDirect',
|
||||||
Username: page.querySelector('.txtUser').value,
|
Username: page.querySelector('.txtUser').value,
|
||||||
EnableAllTuners: true,
|
EnableAllTuners: true,
|
||||||
Password: passwordHash,
|
Password: passwordHash
|
||||||
Pw: page.querySelector('.txtPass').value
|
|
||||||
};
|
};
|
||||||
const id = providerId;
|
const id = providerId;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue