mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 01:12:48 +02:00
Review fixes
This commit is contained in:
parent
598032b734
commit
309e2b0eaa
2 changed files with 7 additions and 7 deletions
|
@ -593,7 +593,7 @@ void AccountManager::requestAccessTokenWithAuthCode(const QString& authCode, con
|
|||
postData.append("client_id=" + clientId.toUtf8() + "&");
|
||||
postData.append("client_secret=" + clientSecret.toUtf8() + "&");
|
||||
postData.append("code=" + authCode.toUtf8() + "&");
|
||||
postData.append(QByteArray("redirect_uri=") + QUrl::toPercentEncoding(redirectUri));
|
||||
postData.append("redirect_uri=" + QUrl::toPercentEncoding(redirectUri));
|
||||
|
||||
request.setUrl(grantURL);
|
||||
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
|
||||
|
@ -613,7 +613,7 @@ void AccountManager::requestAccessTokenWithSteam(QByteArray authSessionTicket) {
|
|||
|
||||
QByteArray postData;
|
||||
postData.append("grant_type=password&");
|
||||
postData.append(QByteArray("steam_auth_ticket=") + QUrl::toPercentEncoding(authSessionTicket) + "&");
|
||||
postData.append("steam_auth_ticket=" + QUrl::toPercentEncoding(authSessionTicket) + "&");
|
||||
postData.append("scope=" + ACCOUNT_MANAGER_REQUESTED_SCOPE.toUtf8());
|
||||
|
||||
request.setUrl(grantURL);
|
||||
|
@ -637,7 +637,7 @@ void AccountManager::requestAccessTokenWithOculus(const QString& nonce, const QS
|
|||
postData.append("grant_type=password&");
|
||||
postData.append("oculus_nonce=" + nonce.toUtf8() + "&");
|
||||
postData.append("oculus_id=" + oculusID.toUtf8() + "&");
|
||||
postData.append("scope=" + ACCOUNT_MANAGER_REQUESTED_SCOPE.toUtf8());
|
||||
postData.append("scope=" + ACCOUNT_MANAGER_REQUESTED_SCOPE.toUtf8());
|
||||
|
||||
request.setUrl(grantURL);
|
||||
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
|
||||
|
@ -666,7 +666,7 @@ void AccountManager::refreshAccessToken() {
|
|||
|
||||
QByteArray postData;
|
||||
postData.append("grant_type=refresh_token&");
|
||||
postData.append(QByteArray("refresh_token=") + QUrl::toPercentEncoding(_accountInfo.getAccessToken().refreshToken) + "&");
|
||||
postData.append("refresh_token=" + QUrl::toPercentEncoding(_accountInfo.getAccessToken().refreshToken) + "&");
|
||||
postData.append("scope=" + ACCOUNT_MANAGER_REQUESTED_SCOPE.toUtf8());
|
||||
|
||||
request.setUrl(grantURL);
|
||||
|
|
|
@ -90,9 +90,9 @@ void DomainAccountManager::requestAccessToken(const QString& username, const QSt
|
|||
// - Ignores "state" parameter.
|
||||
QByteArray formData;
|
||||
formData.append("grant_type=password&");
|
||||
formData.append(QByteArray("username=") + QUrl::toPercentEncoding(username) + "&");
|
||||
formData.append(QByteArray("password=") + QUrl::toPercentEncoding(password) + "&");
|
||||
formData.append(QString("client_id=%1").arg(_currentAuth.clientID).toUtf8());
|
||||
formData.append("username=" + QUrl::toPercentEncoding(username) + "&");
|
||||
formData.append("password=" + QUrl::toPercentEncoding(password) + "&");
|
||||
formData.append("client_id=" + _currentAuth.clientID.toUtf8());
|
||||
|
||||
request.setUrl(_currentAuth.authURL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue