2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -844,6 +844,7 @@ bool Messenger::openLocalUrl(const QString &url) {
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 errors = params.value("errors", QString());
if (const auto window = App::wnd()) {
if (const auto controller = window->controller()) {
controller->showPassportForm(Passport::FormRequest(
@@ -851,7 +852,8 @@ bool Messenger::openLocalUrl(const QString &url) {
scope,
callback,
publicKey,
payload));
payload,
errors));
return true;
}
}