}
common_real_login(true);
if ($this->boolean('rememberme')) {
- common_debug('Adding rememberme cookie');
+ common_debug('Adding rememberme cookie for ' . $nickname);
common_rememberme();
}
# success!
}
common_real_login(true);
if ($this->boolean('rememberme')) {
+ common_debug('Adding rememberme cookie for ' . $nickname);
common_rememberme();
}
common_redirect(common_local_url('profilesettings'));
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);
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