diff options
Diffstat (limited to 'plugins/Login/PasswordForm.php')
-rw-r--r-- | plugins/Login/PasswordForm.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Login/PasswordForm.php b/plugins/Login/PasswordForm.php index dac4192c6f..7bb39d454c 100644 --- a/plugins/Login/PasswordForm.php +++ b/plugins/Login/PasswordForm.php @@ -25,8 +25,12 @@ class Piwik_Login_PasswordForm extends Piwik_Form function init() { + $currentUrl = 'index.php'; + $urlToGoAfter = Piwik_Common::getRequestVar('form_url', $currentUrl, 'string'); + $formElements = array( array('text', 'form_login'), + array('hidden', 'form_url', $urlToGoAfter), ); $this->addElements( $formElements ); |