diff options
-rw-r--r-- | actions/login.php | 3 | ||||
-rw-r--r-- | lib/util.php | 1 |
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() { |