2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Display scope errors in passport.

This commit is contained in:
John Preston
2018-04-17 21:54:52 +04:00
parent 704e3c9423
commit 22bdf15825
15 changed files with 274 additions and 38 deletions

View File

@@ -32,13 +32,15 @@ struct FormRequest {
const QString &scope,
const QString &callbackUrl,
const QString &publicKey,
const QString &payload);
const QString &payload,
const QString &errors);
UserId botId;
QString scope;
QString callbackUrl;
QString publicKey;
QString payload;
QString errors;
};
@@ -317,6 +319,7 @@ private:
void decryptValue(Value &value);
bool validateValueSecrets(Value &value);
void resetValue(Value &value);
void fillErrors();
void loadFile(File &file);
void fileLoadDone(FileKey key, const QByteArray &bytes);