subsonic configuration: use the entered password when clicking Test
This commit is contained in:
parent
e439ac0e0e
commit
81e6b55c39
|
@ -171,7 +171,7 @@ void SubsonicService::SendPingWithCredentials(QUrl url, const QString &username,
|
||||||
else {
|
else {
|
||||||
const QString salt = Utilities::CryptographicRandomString(20);
|
const QString salt = Utilities::CryptographicRandomString(20);
|
||||||
QCryptographicHash md5(QCryptographicHash::Md5);
|
QCryptographicHash md5(QCryptographicHash::Md5);
|
||||||
md5.addData(password_.toUtf8());
|
md5.addData(password.toUtf8());
|
||||||
md5.addData(salt.toUtf8());
|
md5.addData(salt.toUtf8());
|
||||||
params << Param("s", salt);
|
params << Param("s", salt);
|
||||||
params << Param("t", md5.result().toHex());
|
params << Param("t", md5.result().toHex());
|
||||||
|
|
Loading…
Reference in New Issue