summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-05 12:21:42 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-05 12:21:42 -0400
commitc414746e743abbce04b9c42075a6efadbaf41641 (patch)
tree5755eeb1d8fd40442592f3ba8c514e5805259c1d
parent69c8fe060fb830e22030022567fd2f9459e95fd7 (diff)
rememberme debugging
darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz
-rw-r--r--actions/login.php3
-rw-r--r--lib/util.php1
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/login.php b/actions/login.php
index 184e2db85..a4e8b33cd 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -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!
diff --git a/lib/util.php b/lib/util.php
index 38e24bb25..1a0dd07d2 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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() {