diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 01:19:43 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 01:19:43 -0400 |
commit | 625ac7e1d9ad6b78e713fc556cf544158719fdc9 (patch) | |
tree | 0819c3f5aadcc182a8d02868a76f6579201bc0d6 /lib | |
parent | c7f50769066591a23cf778a6db1ad44c9593caae (diff) |
some debug stuff for remember me
darcs-hash:20080709051943-84dde-1b866d62097c549f14fcf783f4404ae1b31cae18.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 2e2a78051..638abdea4 100644 --- a/lib/util.php +++ b/lib/util.php @@ -480,6 +480,7 @@ define('REMEMBERME_EXPIRY', 30 * 24 * 60 * 60); function common_rememberme() { $user = common_current_user(); if (!$user) { + common_debug('No current user to remember', __FILE__); return false; } $rm = new Remember_me(); @@ -488,6 +489,7 @@ function common_rememberme() { $result = $rm->insert(); if (!$result) { common_log_db_error($rm, 'INSERT', __FILE__); + common_debug('Error adding rememberme record for ' . $user->nickname, __FILE__); return false; } common_log(LOG_INFO, 'adding rememberme cookie for ' . $user->nickname); |