2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Don't read legacy "errors" in passport.

This commit is contained in:
John Preston
2023-03-05 20:45:18 +04:00
parent 221b0d19c7
commit d15c462cc3
3 changed files with 4 additions and 10 deletions

View File

@@ -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;
}

View File

@@ -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(

View File

@@ -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;
};