mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't read legacy "errors" in passport.
This commit is contained in:
parent
221b0d19c7
commit
d15c462cc3
3 changed files with 4 additions and 10 deletions
|
@ -243,14 +243,12 @@ bool ShowPassportForm(
|
||||||
const auto nonce = params.value(
|
const auto nonce = params.value(
|
||||||
Passport::NonceNameByScope(scope),
|
Passport::NonceNameByScope(scope),
|
||||||
QString());
|
QString());
|
||||||
const auto errors = params.value("errors", QString());
|
|
||||||
controller->showPassportForm(Passport::FormRequest(
|
controller->showPassportForm(Passport::FormRequest(
|
||||||
botId,
|
botId,
|
||||||
scope,
|
scope,
|
||||||
callback,
|
callback,
|
||||||
publicKey,
|
publicKey,
|
||||||
nonce,
|
nonce));
|
||||||
errors));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,14 +315,12 @@ FormRequest::FormRequest(
|
||||||
const QString &scope,
|
const QString &scope,
|
||||||
const QString &callbackUrl,
|
const QString &callbackUrl,
|
||||||
const QString &publicKey,
|
const QString &publicKey,
|
||||||
const QString &nonce,
|
const QString &nonce)
|
||||||
const QString &errors)
|
|
||||||
: botId(botId)
|
: botId(botId)
|
||||||
, scope(scope)
|
, scope(scope)
|
||||||
, callbackUrl(ValidateUrl(callbackUrl))
|
, callbackUrl(ValidateUrl(callbackUrl))
|
||||||
, publicKey(publicKey)
|
, publicKey(publicKey)
|
||||||
, nonce(nonce)
|
, nonce(nonce) {
|
||||||
, errors(errors) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EditFile::EditFile(
|
EditFile::EditFile(
|
||||||
|
|
|
@ -51,15 +51,13 @@ struct FormRequest {
|
||||||
const QString &scope,
|
const QString &scope,
|
||||||
const QString &callbackUrl,
|
const QString &callbackUrl,
|
||||||
const QString &publicKey,
|
const QString &publicKey,
|
||||||
const QString &nonce,
|
const QString &nonce);
|
||||||
const QString &errors);
|
|
||||||
|
|
||||||
UserId botId;
|
UserId botId;
|
||||||
QString scope;
|
QString scope;
|
||||||
QString callbackUrl;
|
QString callbackUrl;
|
||||||
QString publicKey;
|
QString publicKey;
|
||||||
QString nonce;
|
QString nonce;
|
||||||
QString errors;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue