From: Evan Prodromou Date: Sat, 5 Jul 2008 16:21:42 +0000 (-0400) Subject: rememberme debugging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c414746e743abbce04b9c42075a6efadbaf41641;p=quix0rs-gnu-social.git rememberme debugging darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz --- 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() {