1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 06:15:58 +00:00

fix a bunch of bookmarklets login forms not leading back

This commit is contained in:
Andrew Dolgov
2021-03-04 13:40:54 +03:00
parent 30765805fd
commit 4fda5ccd0e
5 changed files with 19 additions and 6 deletions

View File

@@ -167,7 +167,7 @@ class Bookmarklets extends Plugin {
</html>
<?php
} else {
Handler_Public::_render_login_form();
Handler_Public::_render_login_form($this->host->get_public_method_url($this, "subscribe"));
}
}
@@ -289,10 +289,12 @@ class Bookmarklets extends Plugin {
}
} else {
print_error("Not logged in");
$return_to = $this->host->get_public_method_url($this, "sharepopup");
?>
<form action="public.php?return=<?= urlencode(Config::make_self_url()) ?>" method="post">
<?= format_error("Not logged in") ?>
<form action="public.php?return=<?= urlencode($return_to) ?>" method="post">
<input type="hidden" name="op" value="login">