mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Switch to sending plaintext password and remove Hashing code
This commit is contained in:
parent
536effbc1a
commit
adb9f209bb
1 changed files with 25 additions and 34 deletions
|
@ -83,13 +83,6 @@ export default function (page, providerId, options) {
|
|||
loading.hide();
|
||||
}
|
||||
|
||||
function sha1(str) {
|
||||
const buffer = new TextEncoder('utf-8').encode(str);
|
||||
return crypto.subtle.digest('SHA-1', buffer).then(function (hash) {
|
||||
return hex(hash);
|
||||
});
|
||||
}
|
||||
|
||||
function hex(buffer) {
|
||||
const hexCodes = [];
|
||||
const view = new DataView(buffer);
|
||||
|
@ -106,12 +99,11 @@ export default function (page, providerId, options) {
|
|||
|
||||
function submitLoginForm() {
|
||||
loading.show();
|
||||
sha1(page.querySelector('.txtPass').value).then(function (passwordHash) {
|
||||
const info = {
|
||||
Type: 'SchedulesDirect',
|
||||
Username: page.querySelector('.txtUser').value,
|
||||
EnableAllTuners: true,
|
||||
Password: passwordHash
|
||||
Password: page.querySelector('.txtPass').value
|
||||
};
|
||||
const id = providerId;
|
||||
|
||||
|
@ -136,7 +128,6 @@ export default function (page, providerId, options) {
|
|||
message: globalize.translate('ErrorSavingTvProvider')
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function submitListingsForm() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue