mirror of
https://github.com/friendica/friendica
synced 2025-04-23 09:10:10 +00:00
register/login timestamps
This commit is contained in:
parent
df2e79dcaf
commit
f60f82727f
9 changed files with 38 additions and 9 deletions
|
@ -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']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue