aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2022-10-03 10:49:52 -0400
committerGravatar GitHub <noreply@github.com> 2022-10-03 16:49:52 +0200
commitdb4c2798ae7ab88d6745cfc7d8827d636a7d3ba3 (patch)
tree6f27479f6443855f06c9264e9f36d6c1cb321e70 /app/Controllers
parenta9d4c789311ee54f10ff2b483ad8804bd1de5286 (diff)
Allow redirection after login (#4654)
Before, if you've tried to reach a page without being logged, you'll be automatically redirected to the index page after login. Now, the original page is used after login. Fix #3663
Diffstat (limited to 'app/Controllers')
-rw-r--r--app/Controllers/authController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 932a1ed6d..3661e35cb 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -160,7 +160,7 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController {
Minz_Translate::init(FreshRSS_Context::$user_conf->language);
// All is good, go back to the index.
- Minz_Request::good(_t('feedback.auth.login.success'), [ 'c' => 'index', 'a' => 'index' ]);
+ Minz_Request::good(_t('feedback.auth.login.success'), Minz_Url::unserialize(Minz_Request::param('original_request')));
} else {
Minz_Log::warning("Password mismatch for user={$username}, nonce={$nonce}, c={$challenge}");