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() {