From f60f82727f96c033aaff9f5b5f0767c722e25f28 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 16 Dec 2010 16:35:45 -0800 Subject: register/login timestamps --- mod/openid.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/openid.php') diff --git a/mod/openid.php b/mod/openid.php index 84d4bf4bf..91efbbbc4 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -83,6 +83,11 @@ function openid_content(&$a) { $_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'])) goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); -- cgit v1.2.3