rememberme debugging

darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz
This commit is contained in:
Evan Prodromou 2008-07-05 12:21:42 -04:00
parent 69c8fe060f
commit c414746e74
2 changed files with 2 additions and 2 deletions

View File

@ -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!

View File

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