diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Controllers/authController.php | 2 | ||||
| -rw-r--r-- | app/views/auth/formLogin.phtml | 1 |
2 files changed, 2 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}"); diff --git a/app/views/auth/formLogin.phtml b/app/views/auth/formLogin.phtml index e218d089d..872caac02 100644 --- a/app/views/auth/formLogin.phtml +++ b/app/views/auth/formLogin.phtml @@ -8,6 +8,7 @@ <form id="crypto-form" method="post" action="<?= _url('auth', 'login') ?>"> <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> + <input type="hidden" name="original_request" value="<?= Minz_Url::serialize(Minz_Request::originalRequest())?>" /> <div class="form-group"> <label for="username"><?= _t('gen.auth.username') ?></label> |
