aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-04 21:34:36 -0800
committerfriendica <info@friendica.com>2013-01-04 21:34:36 -0800
commit490867ebf7ca6451bf2304fd15dc8796716f6911 (patch)
tree9b1e136817c5eabce0cb43b87b381c157160370c /include/security.php
parent37957204215854f2d80ca8b975f275ebda305f7e (diff)
downloadvolse-hubzilla-490867ebf7ca6451bf2304fd15dc8796716f6911.tar.gz
volse-hubzilla-490867ebf7ca6451bf2304fd15dc8796716f6911.tar.bz2
volse-hubzilla-490867ebf7ca6451bf2304fd15dc8796716f6911.zip
port "remember me" from Friendica
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php
index ddfb8201d..276c8f97c 100644
--- a/include/security.php
+++ b/include/security.php
@@ -1,6 +1,6 @@
<?php
-function authenticate_success($user_record, $login_initial = false, $interactive = false,$return = false) {
+function authenticate_success($user_record, $login_initial = false, $interactive = false,$return = false,$update_lastlog = false) {
$a = get_app();
@@ -15,7 +15,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
$_SESSION['account_id'] = $user_record['account_id'];
$_SESSION['authenticated'] = 1;
- if($login_initial) {
+ if($login_initial || $update_lastlog) {
q("update account set account_lastlog = '%s' where account_id = %d limit 1",
dbesc(datetime_convert()),
intval($_SESSION['account_id'])