From c414746e743abbce04b9c42075a6efadbaf41641 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 5 Jul 2008 12:21:42 -0400 Subject: [PATCH] rememberme debugging darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz --- actions/login.php | 3 +-- lib/util.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/login.php b/actions/login.php index 184e2db85b..a4e8b33cd9 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 38e24bb25c..1a0dd07d26 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() { -- 2.39.5