aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth/formLogin.phtml
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/views/auth/formLogin.phtml
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/views/auth/formLogin.phtml')
-rw-r--r--app/views/auth/formLogin.phtml1
1 files changed, 1 insertions, 0 deletions
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>