mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fixed last login information not being updated
This commit is contained in:
parent
aaedec89bf
commit
df7ef82a06
@ -56,13 +56,13 @@
|
||||
return $encrypted_passwd;
|
||||
}
|
||||
|
||||
function update_lastlogin($account_lid, $ip)
|
||||
function update_lastlogin($account_id, $ip)
|
||||
{
|
||||
global $phpgw;
|
||||
|
||||
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
||||
. "$ip', account_lastlogin='" . time()
|
||||
. "' where account_lid='$login'",__LINE__,__FILE__);
|
||||
. "' where account_id='$account_id'",__LINE__,__FILE__);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -234,7 +234,7 @@
|
||||
. "$login','" . $this->getuser_ip() . "','" . time()
|
||||
. "','') ",__LINE__,__FILE__);
|
||||
|
||||
$phpgw->auth->update_lastlogin($login,$this->getuser_ip());
|
||||
$phpgw->auth->update_lastlogin($this->account_id,$this->getuser_ip());
|
||||
|
||||
return $this->sessionid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user