mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-13 18:04:49 +00:00
Don't read legacy "errors" in passport.
This commit is contained in:
parent
221b0d19c7
commit
d15c462cc3
@ -243,14 +243,12 @@ bool ShowPassportForm(
|
||||
const auto nonce = params.value(
|
||||
Passport::NonceNameByScope(scope),
|
||||
QString());
|
||||
const auto errors = params.value("errors", QString());
|
||||
controller->showPassportForm(Passport::FormRequest(
|
||||
botId,
|
||||
scope,
|
||||
callback,
|
||||
publicKey,
|
||||
nonce,
|
||||
errors));
|
||||
nonce));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -315,14 +315,12 @@ FormRequest::FormRequest(
|
||||
const QString &scope,
|
||||
const QString &callbackUrl,
|
||||
const QString &publicKey,
|
||||
const QString &nonce,
|
||||
const QString &errors)
|
||||
const QString &nonce)
|
||||
: botId(botId)
|
||||
, scope(scope)
|
||||
, callbackUrl(ValidateUrl(callbackUrl))
|
||||
, publicKey(publicKey)
|
||||
, nonce(nonce)
|
||||
, errors(errors) {
|
||||
, nonce(nonce) {
|
||||
}
|
||||
|
||||
EditFile::EditFile(
|
||||
|
@ -51,15 +51,13 @@ struct FormRequest {
|
||||
const QString &scope,
|
||||
const QString &callbackUrl,
|
||||
const QString &publicKey,
|
||||
const QString &nonce,
|
||||
const QString &errors);
|
||||
const QString &nonce);
|
||||
|
||||
UserId botId;
|
||||
QString scope;
|
||||
QString callbackUrl;
|
||||
QString publicKey;
|
||||
QString nonce;
|
||||
QString errors;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user