Add more logs to debug the portal login (#16)

This commit is contained in:
Kevin Yue
2020-05-30 22:58:58 +08:00
committed by GitHub
parent e12613d9a4
commit 73925fd1e2
10 changed files with 96 additions and 45 deletions

View File

@@ -13,9 +13,9 @@ public:
PortalConfigResponse();
~PortalConfigResponse();
static PortalConfigResponse parse(const QByteArray& xml);
static PortalConfigResponse parse(const QByteArray xml);
const QByteArray& rawResponse() const;
const QByteArray rawResponse() const;
QString username() const;
QString password() const;
QString userAuthCookie() const;
@@ -23,8 +23,8 @@ public:
QList<GPGateway> allGateways();
void setAllGateways(QList<GPGateway> gateways);
void setUsername(const QString& username);
void setPassword(const QString& password);
void setUsername(const QString username);
void setPassword(const QString password);
private:
static QString xmlUserAuthCookie;
@@ -39,9 +39,9 @@ private:
QList<GPGateway> _gateways;
void setRawResponse(const QByteArray& response);
void setUserAuthCookie(const QString& cookie);
void setPrelogonUserAuthCookie(const QString& cookie);
void setRawResponse(const QByteArray response);
void setUserAuthCookie(const QString cookie);
void setPrelogonUserAuthCookie(const QString cookie);
static QList<GPGateway> parseGateways(QXmlStreamReader &xmlReader);
static QMap<QString, int> parsePriorityRules(QXmlStreamReader &xmlReader);