2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Rename payload->nonce in new passport scopes.

This commit is contained in:
John Preston
2018-08-17 14:01:23 +03:00
parent fddc3d6ad9
commit 6bf3006eb9
3 changed files with 20 additions and 9 deletions

View File

@@ -862,7 +862,9 @@ bool Messenger::openLocalUrl(const QString &url, QVariant context) {
const auto scope = params.value("scope", QString());
const auto callback = params.value("callback_url", QString());
const auto publicKey = params.value("public_key", QString());
const auto payload = params.value("payload", QString());
const auto nonce = params.value(
Passport::NonceNameByScope(scope),
QString());
const auto errors = params.value("errors", QString());
if (const auto window = App::wnd()) {
if (const auto controller = window->controller()) {
@@ -871,7 +873,7 @@ bool Messenger::openLocalUrl(const QString &url, QVariant context) {
scope,
callback,
publicKey,
payload,
nonce,
errors));
return true;
}