mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 14:16:36 +02:00
Merge pull request #13993 from highfidelity/revert-13989-fixLoginFailTwiceCall
Revert "Fix login fail twice call"
This commit is contained in:
commit
79cf1cb612
2 changed files with 8 additions and 0 deletions
|
@ -538,6 +538,7 @@ void AccountManager::requestAccessToken(const QString& login, const QString& pas
|
|||
|
||||
QNetworkReply* requestReply = networkAccessManager.post(request, postData);
|
||||
connect(requestReply, &QNetworkReply::finished, this, &AccountManager::requestAccessTokenFinished);
|
||||
connect(requestReply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(requestAccessTokenError(QNetworkReply::NetworkError)));
|
||||
}
|
||||
|
||||
void AccountManager::requestAccessTokenWithSteam(QByteArray authSessionTicket) {
|
||||
|
@ -632,6 +633,12 @@ void AccountManager::requestAccessTokenFinished() {
|
|||
}
|
||||
}
|
||||
|
||||
void AccountManager::requestAccessTokenError(QNetworkReply::NetworkError error) {
|
||||
// TODO: error handling
|
||||
qCDebug(networking) << "AccountManager: failed to fetch access token - " << error;
|
||||
emit loginFailed();
|
||||
}
|
||||
|
||||
void AccountManager::refreshAccessTokenFinished() {
|
||||
QNetworkReply* requestReply = reinterpret_cast<QNetworkReply*>(sender());
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ public slots:
|
|||
void requestAccessTokenFinished();
|
||||
void refreshAccessTokenFinished();
|
||||
void requestProfileFinished();
|
||||
void requestAccessTokenError(QNetworkReply::NetworkError error);
|
||||
void refreshAccessTokenError(QNetworkReply::NetworkError error);
|
||||
void requestProfileError(QNetworkReply::NetworkError error);
|
||||
void logout();
|
||||
|
|
Loading…
Reference in a new issue