diff options
author | robocoder <anthon.pang@gmail.com> | 2010-08-08 09:11:47 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-08-08 09:11:47 +0400 |
commit | 59710e8f52a9c6f88272c75ccd39cf3c95afbe59 (patch) | |
tree | ead775cc0997b87871fb4da98fe36b75f983f581 /plugins/Login/FormLogin.php | |
parent | 169d85cdd9c06f30511235ee111384b114a0e9f3 (diff) |
refs #1419 - add 'Remember Me' to Login form; unchecked by default (which is safe by default); small change to core/Cookie.php to allow cookie to expire at end-of-session; shorten persistent cookie life to 14 days
Note: potential compat buster: logme() cookie is no longer persistent
git-svn-id: http://dev.piwik.org/svn/trunk@2901 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Login/FormLogin.php')
-rw-r--r-- | plugins/Login/FormLogin.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Login/FormLogin.php b/plugins/Login/FormLogin.php index 0dfd83a661..94a24f3a23 100644 --- a/plugins/Login/FormLogin.php +++ b/plugins/Login/FormLogin.php @@ -31,6 +31,13 @@ class Piwik_Login_FormLogin extends Piwik_QuickForm2 $this->addElement('hidden', 'form_nonce'); + $this->addElement('checkbox', 'form_rememberme'); + $this->addElement('submit', 'submit'); + + // default values + $this->addDataSource(new HTML_QuickForm2_DataSource_Array(array( + 'form_rememberme' => 0, + ))); } } |