]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
added a script for adding old replies in
[quix0rs-gnu-social.git] / actions / login.php
index d47e0579d088f128cc8a6bc367610d243d2c04c3..a4e8b33cd9e1b062d2b2f013fa11a6b2ab861019 100644 (file)
@@ -45,6 +45,7 @@ class LoginAction extends Action {
                        }
                        common_real_login(true);
                        if ($this->boolean('rememberme')) {
+                               common_debug('Adding rememberme cookie');
                                common_rememberme();
                        }
                        # success!
@@ -65,12 +66,12 @@ class LoginAction extends Action {
 
        function show_form($error=NULL) {
                common_show_header(_t('Login'), NULL, $error, array($this, 'show_top'));
-               common_element_start('form', array('method' => 'POST',
+               common_element_start('form', array('method' => 'post',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url('login')));
                common_input('nickname', _t('Nickname'));
                common_password('password', _t('Password'));
-               common_checkbox('rememberme', _t('Remember me'),
+               common_checkbox('rememberme', _t('Remember me'), false,
                                _t('Automatically login in the future; ' .
                                   'not for shared computers!'));
                common_submit('submit', _t('Login'));