aboutsummaryrefslogtreecommitdiffstats
path: root/mod/openid.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2010-12-17 11:53:05 +0100
committerroot <root@diekershoff.homeunix.net>2010-12-17 11:53:05 +0100
commitf6ee615a79eaab03adc540704ab17b8a44a3d9e8 (patch)
treec92b91abd9e84d32bcfebda77529b68887b16c9b /mod/openid.php
parent79ab5b2ff87ef171a9baf604179080861d64d788 (diff)
parentd1261e50c6a804d329b674dfba66574419c5f6c5 (diff)
downloadvolse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.tar.gz
volse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.tar.bz2
volse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/openid.php')
-rw-r--r--mod/openid.php5
1 files changed, 5 insertions, 0 deletions
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']);