If no authToken is stored in settings but email and password are on startup the log_in route is triggered to receive a new token. This token will be used to access a protected API.
This commit is contained in:
@ -71,7 +71,7 @@ QByteArray JsonParser::itemValuesListToJson(const QList<ModelItemValues>& itemVa
|
||||
return jsonDoc.toJson(QJsonDocument::Compact);
|
||||
}
|
||||
|
||||
QByteArray JsonParser::ToJsonObject(const QHash<QString, QVariant>& values,
|
||||
QByteArray JsonParser::toJsonDoc(const QHash<QString, QVariant>& values,
|
||||
const QString& objectName) {
|
||||
QJsonDocument jsonDoc;
|
||||
QJsonObject rootObject;
|
||||
|
||||
@ -19,7 +19,7 @@ class JsonParser {
|
||||
const QString& rootValueName = "");
|
||||
static QByteArray itemValuesListToJson(const QList<ModelItemValues>& itemValuesList,
|
||||
const QString& objectName = "");
|
||||
static QByteArray ToJsonObject(const QHash<QString, QVariant>& Values,
|
||||
static QByteArray toJsonDoc(const QHash<QString, QVariant>& Values,
|
||||
const QString& objectName = "");
|
||||
|
||||
static ModelItemValues serverUserCredentialsToItemValues(const QJsonDocument& jsonDoc);
|
||||
|
||||
Reference in New Issue
Block a user