summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-08 02:42:41 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-08 02:42:41 -0400
commit31db4cd94e8afd6e0a59d17253b1db6ebb765900 (patch)
tree97d73f4104ebe213c7def78dada5f73fa23c4619 /lib
parentebd9adca69d6e26f3c237c3e95a6995e88d2b64e (diff)
more debug output for rememberme cookies
darcs-hash:20080708064241-84dde-6c72e4e5d5ec5675bdef027e1b241f0555ce8dd1.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 8984c1c82..60242eaf7 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -481,6 +481,7 @@ function common_rememberme() {
common_log_db_error($rm, 'INSERT', __FILE__);
return false;
}
+ common_log(LOG_INFO, 'adding rememberme cookie for ' . $user->nickname);
common_set_cookie(REMEMBERME,
implode(':', array($rm->user_id, $rm->code)),
time() + REMEMBERME_EXPIRY);
@@ -504,6 +505,7 @@ function common_remembered_user() {
common_log_db_error($rm, 'DELETE', __FILE__);
$user = NULL;
} else {
+ common_log(LOG_INFO, 'logging in ' . $user->nickname . ' using rememberme code ' . $rm->code);
common_set_user($user->nickname);
common_real_login(false);
# We issue a new cookie, so they can log in