]> git.mxchange.org Git - friendica.git/blobdiff - include/auth.php
register/login timestamps
[friendica.git] / include / auth.php
index dd4afac2392200c904dcfe345b94b3a1349e93ae..fe09ef1604c5b7e2096db828345807ddaba844da 100644 (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']))