rememberme debugging
darcs-hash:20080705162142-84dde-6bc70413f43e0890e6372962eb14697ee6f88992.gz
This commit is contained in:
parent
69c8fe060f
commit
c414746e74
@ -44,9 +44,8 @@ class LoginAction extends Action {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
common_real_login(true);
|
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')) {
|
if ($this->boolean('rememberme')) {
|
||||||
|
common_debug('Adding rememberme cookie');
|
||||||
common_rememberme();
|
common_rememberme();
|
||||||
}
|
}
|
||||||
# success!
|
# success!
|
||||||
|
@ -484,6 +484,7 @@ function common_rememberme() {
|
|||||||
common_set_cookie(REMEMBERME,
|
common_set_cookie(REMEMBERME,
|
||||||
implode(':', array($rm->user_id, $rm->code)),
|
implode(':', array($rm->user_id, $rm->code)),
|
||||||
time() + REMEMBERME_EXPIRY);
|
time() + REMEMBERME_EXPIRY);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function common_remembered_user() {
|
function common_remembered_user() {
|
||||||
|
Loading…
Reference in New Issue
Block a user