]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
rememberme debugging
authorEvan Prodromou <evan@prodromou.name>
Sat, 5 Jul 2008 16:21:42 +0000 (12:21 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 5 Jul 2008 16:21:42 +0000 (12:21 -0400)
darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz

actions/login.php
lib/util.php

index 184e2db85b9a857dee8c417e07c63df0dcde51a6..a4e8b33cd9e1b062d2b2f013fa11a6b2ab861019 100644 (file)
@@ -44,9 +44,8 @@ class LoginAction extends Action {
                                return;
                        }
                        common_real_login(true);
-                       common_debug('Remember me is "' . $this->arg('rememberme') . '"');
-                       common_debug('Remember me value is "' . $this->boolean('rememberme') . '"');
                        if ($this->boolean('rememberme')) {
+                               common_debug('Adding rememberme cookie');
                                common_rememberme();
                        }
                        # success!
index 38e24bb25ccd68ebb040c7723225d7d0e2f57fc5..1a0dd07d2628552ab6c2551f33ce95dac3c5342a 100644 (file)
@@ -484,6 +484,7 @@ function common_rememberme() {
        common_set_cookie(REMEMBERME,
                                          implode(':', array($rm->user_id, $rm->code)),
                                          time() + REMEMBERME_EXPIRY);
+       return true;
 }
 
 function common_remembered_user() {