register/login timestamps

This commit is contained in:
Friendika 2010-12-16 16:35:45 -08:00
parent df2e79dcaf
commit f60f82727f
9 changed files with 38 additions and 9 deletions

View file

@ -162,6 +162,10 @@ else {
$a->cid = $r[0]['id'];
$_SESSION['cid'] = $a->cid;
}
q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1",
dbesc(datetime_convert()),
intval($_SESSION['uid'])
);
header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] .'"');
if(($a->module !== 'home') && isset($_SESSION['return_url']))