subsonic configuration: use the entered password when clicking Test

This commit is contained in:
Enrique Garcia
2022-01-22 03:09:19 +01:00
committed by Jonas Kvinge
parent e439ac0e0e
commit 81e6b55c39

View File

@@ -171,7 +171,7 @@ void SubsonicService::SendPingWithCredentials(QUrl url, const QString &username,
else {
const QString salt = Utilities::CryptographicRandomString(20);
QCryptographicHash md5(QCryptographicHash::Md5);
md5.addData(password_.toUtf8());
md5.addData(password.toUtf8());
md5.addData(salt.toUtf8());
params << Param("s", salt);
params << Param("t", md5.result().toHex());