1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 16:51:59 +01:00

Do not log sensitive data in OAuthenticator.

This commit is contained in:
John Maguire 2017-02-27 12:41:08 +00:00
parent 973f32c061
commit 27bf50d702

View File

@ -80,7 +80,6 @@ void OAuthenticator::StartAuthorisation(const QString& oauth_endpoint,
void OAuthenticator::RedirectArrived(LocalRedirectServer* server, QUrl url) { void OAuthenticator::RedirectArrived(LocalRedirectServer* server, QUrl url) {
server->deleteLater(); server->deleteLater();
QUrl request_url = server->request_url(); QUrl request_url = server->request_url();
qLog(Debug) << Q_FUNC_INFO << request_url;
RequestAccessToken(request_url.queryItemValue("code").toUtf8(), url); RequestAccessToken(request_url.queryItemValue("code").toUtf8(), url);
} }
@ -139,8 +138,6 @@ void OAuthenticator::FetchAccessTokenFinished(QNetworkReply* reply) {
return; return;
} }
qLog(Debug) << result;
access_token_ = result["access_token"].toString(); access_token_ = result["access_token"].toString();
refresh_token_ = result["refresh_token"].toString(); refresh_token_ = result["refresh_token"].toString();
SetExpiryTime(result["expires_in"].toInt()); SetExpiryTime(result["expires_in"].toInt());